mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -1,32 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get application name from directory
|
||||
application=`basename $PWD`
|
||||
|
||||
# Find and source additional functions
|
||||
tutorialPath=$PWD
|
||||
while [ ! -f $tutorialPath/CleanFunctions ]
|
||||
do
|
||||
tutorialPath="$tutorialPath/.."
|
||||
done
|
||||
. $tutorialPath/CleanFunctions
|
||||
|
||||
|
||||
|
||||
keepCases="damBreak"
|
||||
loseCases="damBreakFine"
|
||||
|
||||
for case in $keepCases
|
||||
do
|
||||
(cd $case && $tutorialPath/cleanAll)
|
||||
|
||||
if [ "$case" = "damBreak" ]
|
||||
then
|
||||
cp $case/0/gamma.org $case/0/gamma
|
||||
fi
|
||||
done
|
||||
|
||||
for case in $loseCases
|
||||
do
|
||||
removeCase $case
|
||||
done
|
||||
Reference in New Issue
Block a user