mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
FIX: provide restore0Dir function to fix issue #159
- makes it easier to ensure the correct behaviour, consistently
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user