ENH: add cloneParallelCase function into bin/tools/RunFunctions

This commit is contained in:
Mark Olesen
2017-06-22 14:45:53 +01:00
parent 880c98757d
commit 8005e2b4a2
2 changed files with 89 additions and 40 deletions

View File

@ -1,27 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cloneParallelCase()
{
if [ -d $2 ]
then
echo "Case already cloned: remove case directory $2 to clone"
else
echo "Cloning $2 case from $1 in parallel mode"
mkdir $2
cpfiles="processor* system constant"
for f in $cpfiles
do
cp -r $1/$f $2
done
fi
}
# Do the Spalart-Allmaras steady-state case
(cd motorBike && foamRunTutorials)