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/makeSerialLinks

29 lines
519 B
Text
Raw Permalink Normal View History

#!/bin/bash
# Check for proper number of command line args.
if [ "$#" -ne 2 ]; then
echo "Usage: makeSerialLinks fluidCase solidCase"
exit 1
fi
2012-09-11 15:42:55 +00:00
2017-04-17 13:18:03 +00:00
if [ "$WM_OSTYPE" = "MSWindows" ]
then
cd $1
cd constant
cp -r ../../$2/constant solid
cd ../system
cp -r ../../$2/system solid
cd ../0
cp -r ../../$2/0 solid
cd ../..
else
cd $1
cd constant
ln -s ../../$2/constant solid
cd ../system
ln -s ../../$2/system solid
cd ../0
ln -s ../../$2/0 solid
cd ../..
fi