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:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -10,7 +10,7 @@ application=$(getApplication)
|
||||
runApplication blockMesh
|
||||
|
||||
# Copy 0.org to 0
|
||||
cp -r 0.org 0
|
||||
restore0Dir
|
||||
|
||||
# Create sets
|
||||
runApplication topoSet
|
||||
|
||||
Reference in New Issue
Block a user