mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
foamRunTutorials now accepts two arguments: -test : Preferentially execute Alltest, if present, over Allrun. -skipFirst : Skip Alltest/Allrun at the top level to prevent recursion Added because some tutorials are not dependent on controlDict and take a long time.
19 lines
501 B
Bash
Executable File
19 lines
501 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
runApplication cvMesh
|
|
|
|
# Change collapseEdges to only do one iteration
|
|
cp system/collapseDict system/collapseDict.org
|
|
|
|
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
|
|
system/collapseDict.org > system/collapseDict
|
|
|
|
runApplication collapseEdges -latestTime -collapseFaces
|
|
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|