mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: verificationAndValidation Allrun uses bash
STYLE: double-quote "$@" for isTest/notTest
This commit is contained in:
@ -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
|
||||
|
||||
@ -33,7 +33,7 @@ do
|
||||
rm -rf logs
|
||||
done
|
||||
|
||||
if notTest $@
|
||||
if notTest "$@"
|
||||
then
|
||||
# create validation plot
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ copyParallelPointDisplacement()
|
||||
# Do steady-state case
|
||||
(cd steady && foamRunTutorials)
|
||||
|
||||
if notTest $@
|
||||
if notTest "$@"
|
||||
then
|
||||
latestTime=$(\cd steady && foamListTimes -noZero -latestTime -processor)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -26,7 +26,7 @@ runApplication blockMesh
|
||||
runApplication decomposePar
|
||||
runParallel $(getApplication)
|
||||
|
||||
if notTest $@
|
||||
if notTest "$@"
|
||||
then
|
||||
# create validation plot
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ Stokes
|
||||
"
|
||||
|
||||
endTime=2
|
||||
if notTest $@
|
||||
if notTest "$@"
|
||||
then
|
||||
endTime=25
|
||||
fi
|
||||
|
||||
@ -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
|
||||
|
||||
@ -6,7 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
runApplication blockMesh
|
||||
runApplication simpleFoam
|
||||
|
||||
if notTest $@
|
||||
if notTest "$@"
|
||||
then
|
||||
# Create validation plots
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ extractVal()
|
||||
}
|
||||
|
||||
|
||||
# Possibly disable for test: if notTest $@
|
||||
# Possibly disable for test: if notTest "$@"
|
||||
|
||||
if :
|
||||
then
|
||||
|
||||
@ -92,7 +92,7 @@ PLT_CP
|
||||
}
|
||||
|
||||
|
||||
if notTest $@
|
||||
if notTest "$@"
|
||||
then
|
||||
# Create validation plots
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user