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

@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
application=`getApplication`
runApplication blockMesh
cp 0/T.org 0/T
\cp 0/T.org 0/T
runApplication setFields
runApplication $application

View File

@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
application=`getApplication`
runApplication blockMesh
cp 0/T.org 0/T
\cp 0/T.org 0/T
runApplication setFields
runApplication $application

View File

@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
cp 0/T.org 0/T
\cp 0/T.org 0/T
#------------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ application=`getApplication`
runApplication blockMesh
cp -r 0.org 0
restore0Dir
# Create 1D and 3D baffles
runApplication createBaffles -overwrite

View File

@ -21,7 +21,6 @@ rm log.topoSet
runApplication topoSet -region cabin -dict system/topoSetDictRegister
# set the initial fields
rm -rf 0
cp -rf 0.org 0
restore0Dir
runApplication $(getApplication)

View File

@ -17,5 +17,4 @@ runApplication subsetMesh c0 -patch walls -overwrite
runApplication splitMeshRegions -cellZones -overwrite
# set the initial fields
rm -rf 0
cp -rf 0.org 0
restore0Dir

View File

@ -1,5 +1,4 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
@ -25,5 +24,4 @@ rm -rf constant/air/polyMesh/sets
paraFoam -touch -region porous
paraFoam -touch -region air
cp -rf 0.org 0
restore0Dir