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

@ -18,7 +18,7 @@ runApplication mergeOrSplitBaffles -split -overwrite
runApplication createPatch -overwrite
# Copy fields after meshing to avoind the generation of unnecessary patch fields
\cp -r 0.org 0
restore0Dir
# Initialize alpha
runApplication setFields

View File

@ -4,8 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp system/controlDict.rhoCentralFoam system/controlDict
cp -r 0.org 0
\cp system/controlDict.rhoCentralFoam system/controlDict
restore0Dir
runApplication decomposePar
runParallel rhoCentralFoam

View File

@ -10,7 +10,7 @@ application=$(getApplication)
runApplication blockMesh
# Copy 0.org to 0
cp -r 0.org 0
restore0Dir
# Create sets
runApplication topoSet