Tried to sort out the scripts in the tutorials but found it is messed up. Will start again from a new version from Mattijs

This commit is contained in:
henry
2008-06-13 13:46:55 +01:00
parent 91c2d7743b
commit 9ad914ca0b
1061 changed files with 0 additions and 533232 deletions

View File

@ -1,43 +0,0 @@
#!/bin/sh
# Get application name from directory
parentDir=`dirname $PWD`
application=`basename $parentDir`
# Find and source additional functions
tutorialPath=$PWD
while [ ! -f $tutorialPath/RunFunctions ]
do
tutorialPath="$tutorialPath/.."
done
. $tutorialPath/RunFunctions
runKivaToFoam ()
{
if [ -f log.kivaToFoam ] ; then
echo "kivaToFoam already run on $PWD: remove log file to run"
else
echo "kivaToFoam: converting kiva file"
kivaToFoam -file $1 > log.kivaToFoam 2>&1
fi
}
restartApplication ()
{
if [ -f log-2.$1 ] ; then
echo "$1 already run on $PWD: remove log file to run"
else
echo "Running $1 on $PWD"
$1 > log-2.$1 2>&1
fi
}
runKivaToFoam . $case/otape17
cp system/controlDict.1st system/controlDict
runApplication $application
cp system/controlDict.2nd system/controlDict
restartApplication $application