STYLE: adjust tutorial Allrun scripts (issue #310)

- A few without a 'cd' at the start.
  Use $(getApplication) directly in more places (for clarity).
This commit is contained in:
Mark Olesen
2016-11-21 10:18:00 +01:00
parent 21679c04e4
commit a6a90838fa
150 changed files with 226 additions and 378 deletions

View File

@ -16,8 +16,6 @@ intersectSurfaces()
surfaceBooleanFeatures intersection "$@"
}
# Set application name
application=$(getApplication)
\rm -rf 0

View File

@ -6,9 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cp system/controlDict.flow system/controlDict
# Set application name
application=$(getApplication)
rm -rf 0
runApplication createBaffles -overwrite
@ -17,7 +14,7 @@ runApplication mergeOrSplitBaffles -split -overwrite
# Get rid of zero faced patches
runApplication createPatch -overwrite
# Copy fields after meshing to avoind the generation of unnecessary patch fields
# Copy fields after meshing to avoid the generation of unnecessary patch fields
restore0Dir
# Initialize alpha
@ -28,7 +25,7 @@ runApplication -s main \
decomposePar -force
# Run
runParallel $application
runParallel $(getApplication)
# Reconstruct
runApplication reconstructPar -noFunctionObjects