TUT: verificationAndValidation Allrun uses bash

STYLE: double-quote "$@" for isTest/notTest
This commit is contained in:
Mark Olesen
2020-03-30 21:14:29 +02:00
parent 8a4ea197cd
commit 9b1c0786ce
36 changed files with 50 additions and 43 deletions

View File

@ -3,7 +3,7 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
if notTest $@
if notTest "$@"
then
foamRunTutorials -skipFirst
else

View File

@ -33,7 +33,7 @@ do
rm -rf logs
done
if notTest $@
if notTest "$@"
then
# create validation plot

View File

@ -75,7 +75,7 @@ copyParallelPointDisplacement()
# Do steady-state case
(cd steady && foamRunTutorials)
if notTest $@
if notTest "$@"
then
latestTime=$(\cd steady && foamListTimes -noZero -latestTime -processor)

View File

@ -52,7 +52,7 @@ linkParallelCase()
# Do steady-state case
(cd steady && ./Allrun.pre)
if notTest $@
if notTest "$@"
then
# Copy/link the steady-state case to movement
linkParallelCase steady movement

View File

@ -26,7 +26,7 @@ runApplication blockMesh
runApplication decomposePar
runParallel $(getApplication)
if notTest $@
if notTest "$@"
then
# create validation plot

View File

@ -14,7 +14,7 @@ runParallel $(getApplication)
# Run noise tool for both point and surface
if notTest $@
if notTest "$@"
then
runParallel -s point noise -dict system/noiseDict-point

View File

@ -10,7 +10,7 @@ Stokes
"
endTime=2
if notTest $@
if notTest "$@"
then
endTime=25
fi

View File

@ -6,7 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
# Do the Spalart-Allmaras steady-state case
(cd motorBike && foamRunTutorials)
if notTest $@
if notTest "$@"
then
# Clone the steady-state case to the LES case
cloneParallelCase motorBike motorBikeLES

View File

@ -6,7 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
runApplication blockMesh
runApplication simpleFoam
if notTest $@
if notTest "$@"
then
# Create validation plots

View File

@ -47,7 +47,7 @@ extractVal()
}
# Possibly disable for test: if notTest $@
# Possibly disable for test: if notTest "$@"
if :
then

View File

@ -92,7 +92,7 @@ PLT_CP
}
if notTest $@
if notTest "$@"
then
# Create validation plots

View File

@ -3,7 +3,7 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
if notTest $@
if notTest "$@"
then
models="
kOmegaSST