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
2017-04-17 15:18:03 +02:00

28 lines
519 B
Bash
Executable file

#!/bin/bash
# Check for proper number of command line args.
if [ "$#" -ne 2 ]; then
echo "Usage: makeSerialLinks fluidCase solidCase"
exit 1
fi
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