mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
foamRunTutorials: Rationalized support for the "-test" option
RunFunctions: Added "isTest()" argument parsing function
tutorials: Updated Allrun scripts to propagate the "-test" option
tutorials: Removed the lower Alltest scripts and updated the Allrun to
use the "isTest()" function to handle test-specific operation
This commit is contained in:
@ -25,11 +25,14 @@ cloneParallelCase()
|
||||
# Do the Spalart-Allmaras steady-state case
|
||||
(cd motorBike && foamRunTutorials)
|
||||
|
||||
# Clone the steady-state case to the LES case
|
||||
cloneParallelCase motorBike motorBikeLES
|
||||
if ! isTest $@
|
||||
then
|
||||
# Clone the steady-state case to the LES case
|
||||
cloneParallelCase motorBike motorBikeLES
|
||||
|
||||
# Do the LES case
|
||||
cp lesFiles/Allrun motorBikeLES/
|
||||
(cd motorBikeLES && foamRunTutorials)
|
||||
# Do the LES case
|
||||
cp lesFiles/Allrun motorBikeLES/
|
||||
(cd motorBikeLES && foamRunTutorials)
|
||||
fi
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Do the Spalart-Allmaras steady-state case
|
||||
(cd motorBike && foamRunTutorials)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -16,7 +16,7 @@ runParallel snappyHexMesh -overwrite
|
||||
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0
|
||||
|
||||
runParallel topoSet
|
||||
runParallel `getApplication`
|
||||
|
||||
Reference in New Issue
Block a user