This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/makeLinks

30 lines
507 B
Text
Raw Normal View History

#!/bin/bash
2012-09-11 15:42:55 +00:00
# Check for proper number of command line args.
if [ "$#" -ne 2 ]; then
2012-09-11 15:42:55 +00:00
echo "Usage: makeLinks fluidCase solidCase"
exit 1
fi
2012-09-11 15:42:55 +00:00
echo changing into fluid directory
cd $1/constant
2012-09-11 15:42:55 +00:00
echo creating links
ln -s ../../$2/constant solid
cd ../system
ln -s ../../$2/system solid
cd ../0
ln -s ../../$2/0 solid
cd ..
echo creating processor links
for proc in processor*
do
cd $proc
cd 0
ln -s ../../../$2/$proc/0 solid
cd ../constant
ln -s ../../../$2/$proc/constant solid
cd ../..
done