FIX: provide restore0Dir function to fix issue #159

- makes it easier to ensure the correct behaviour, consistently
This commit is contained in:
Mark Olesen
2016-06-27 16:33:55 +02:00
parent dd3fb6225f
commit dd60cfcd06
76 changed files with 205 additions and 190 deletions

View File

@ -5,10 +5,10 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove old time and post-processing directories
rm -rf 0 *[1-9]* processor* postProcessing
\rm -rf 0 *[1-9]* processor* postProcessing
# copy 0.org to 0
cp -r 0.org 0
# restore 0/ directory from 0.org/
\cp -r 0.org 0
cleanCase

View File

@ -4,15 +4,14 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
rm -rf 0
cp -rf 0.org 0
restore0Dir
runApplication blockMesh
runApplication potentialFoam
# remove incompatible (volumetric) flux field
rm -f 0/phi
\rm -f 0/phi 2>/dev/null
runApplication $(getApplication)