Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
fe140cd6
Commit
fe140cd6
authored
Feb 20, 2018
by
Mark Olesen
Browse files
TUT: test mode not respected (closes
#710
)
- now replaced 'if ! isTest' with 'if notTest' for most cases.
parent
63edb602
Changes
24
Hide whitespace changes
Inline
Side-by-side
bin/tools/RunFunctions
View file @
fe140cd6
...
...
@@ -3,7 +3,7 @@
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
# \\/ M anipulation | Copyright (C) 2015-201
7
OpenCFD Ltd.
# \\/ M anipulation | Copyright (C) 2015-201
8
OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM, licensed under GNU General Public License
...
...
@@ -24,7 +24,7 @@
#------------------------------------------------------------------------------
#
#
Look for
'-parallel' in the argument list.
#
Check presence of
'-parallel' in the argument list.
#
isParallel
()
{
...
...
@@ -34,7 +34,7 @@ isParallel()
#
#
Look for
'-test' in the argument list.
#
Check presence of
'-test' in the argument list.
#
isTest
()
{
...
...
@@ -42,6 +42,15 @@ isTest()
return
1
}
#
# Check absence of '-test' in the argument list.
#
notTest
()
{
for
i
;
do
[
"
$i
"
=
"-test"
]
&&
return
1
;
done
return
0
}
#
# Extract 'numberOfSubdomains' from system/decomposeParDict
...
...
tutorials/combustion/XiFoam/RAS/Allrun
View file @
fe140cd6
...
...
@@ -20,7 +20,7 @@ setCombustionProperties()
# Do moriyoshiHomogeneous
(
cd
moriyoshiHomogeneous
&&
foamRunTutorials
)
if
!
is
Test
$@
if
not
Test
$@
then
# Clone case for second phase
cloneCase moriyoshiHomogeneous moriyoshiHomogeneousPart2
...
...
tutorials/combustion/chemFoam/gri/Allrun
View file @
fe140cd6
...
...
@@ -9,7 +9,7 @@ runApplication chemkinToFoam \
runApplication
$(
getApplication
)
if
!
is
Test
$@
if
not
Test
$@
then
(
cd
validation
&&
./Allrun
$*
)
fi
...
...
tutorials/combustion/chemFoam/h2/Allrun
View file @
fe140cd6
...
...
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication
$(
getApplication
)
if
!
is
Test
$@
if
not
Test
$@
then
(
cd
validation
&&
./Allrun
$*
)
fi
...
...
tutorials/combustion/chemFoam/ic8h18/Allrun
View file @
fe140cd6
...
...
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication
$(
getApplication
)
if
!
is
Test
$@
if
not
Test
$@
then
(
cd
validation
&&
./Allrun
$*
)
fi
...
...
tutorials/combustion/chemFoam/ic8h18_TDAC/Allrun
View file @
fe140cd6
...
...
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication
$(
getApplication
)
if
!
is
Test
$@
if
not
Test
$@
then
(
cd
validation
&&
./Allrun
$*
)
fi
...
...
tutorials/combustion/chemFoam/nc7h16/Allrun
View file @
fe140cd6
...
...
@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication
$(
getApplication
)
if
!
is
Test
$@
if
not
Test
$@
then
(
cd
validation
&&
./Allrun
$*
)
fi
...
...
tutorials/combustion/fireFoam/LES/compartmentFire/Allrun
View file @
fe140cd6
...
...
@@ -21,7 +21,7 @@ runParallel $(getApplication)
paraFoam
-touch
paraFoam
-touch
-region
panelRegion
if
!
is
Test
$@
if
not
Test
$@
then
(
cd
validation
&&
./createGraphs
)
fi
...
...
tutorials/combustion/reactingFoam/RAS/SandiaD_LTS/Allrun
View file @
fe140cd6
...
...
@@ -8,8 +8,8 @@ application=$(getApplication)
restore0Dir
runApplication chemkinToFoam
\
chemkin/grimech30.dat chemkin/thermo30.dat chemkin/transportProperties
\
constant/reactionsGRI constant/thermo.compressibleGasGRI
chemkin/grimech30.dat chemkin/thermo30.dat chemkin/transportProperties
\
constant/reactionsGRI constant/thermo.compressibleGasGRI
runApplication blockMesh
runApplication setFields
...
...
tutorials/compressible/rhoPimpleFoam/laminar/helmholtzResonance/Allrun
View file @
fe140cd6
...
...
@@ -29,7 +29,7 @@ run resolved
# Run with the plenum modelled by a boundary condition
run modelled
if
!
is
Test
$@
if
not
Test
$@
then
# Plot a comparison of the pressure in the neck
cat
<<
EOF
| gnuplot -persist
...
...
tutorials/compressible/sonicLiquidFoam/Allrun
View file @
fe140cd6
...
...
@@ -26,7 +26,7 @@ setDecompressionTankFine()
# Do decompressionTank
(
cd
decompressionTank
&&
foamRunTutorials
)
if
!
is
Test
$@
if
not
Test
$@
then
# Clone case
cloneCase decompressionTank decompressionTankFine
...
...
tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun
View file @
fe140cd6
...
...
@@ -6,7 +6,7 @@ runApplication blockMesh
runApplication
$(
getApplication
)
runApplication
-s
sample postProcess
-latestTime
-func
sample
if
!
ist
est
$@
if
notT
est
$@
then
runApplication validation/createGraphs
fi
...
...
tutorials/incompressible/boundaryFoam/boundaryWallFunctionsProfile/Allrun
View file @
fe140cd6
...
...
@@ -32,7 +32,7 @@ do
rm
-rf
logs
done
if
!
is
Test
$@
if
not
Test
$@
then
# create validation plot
# Test if gnuplot exists on the system
...
...
tutorials/incompressible/lumpedPointMotion/building/Allrun
View file @
fe140cd6
...
...
@@ -75,7 +75,7 @@ copyParallelPointDisplacement()
# Do steady-state case
(
cd
steady
&&
foamRunTutorials
)
if
!
is
Test
$@
if
not
Test
$@
then
latestTime
=
$(
cd
steady
&&
foamListTimes
-noZero
-latestTime
-processor
)
...
...
tutorials/incompressible/lumpedPointMotion/building/Allrun.move
View file @
fe140cd6
...
...
@@ -51,7 +51,7 @@ linkParallelCase()
# Do steady-state case
(
cd
steady
&&
./Allrun.pre
)
if
!
is
Test
$@
if
not
Test
$@
then
# Copy/link the steady-state case to movement
linkParallelCase steady movement
...
...
tutorials/incompressible/pimpleFoam/LES/vortexShed/Allrun
View file @
fe140cd6
...
...
@@ -15,7 +15,7 @@ runParallel $(getApplication)
# Run noise tool for both point and surface
if
!
is
Test
$@
if
not
Test
$@
then
runParallel
-s
point noise
-dict
system/noiseDict-point
...
...
tutorials/incompressible/pisoFoam/LES/motorBike/Allrun
View file @
fe140cd6
...
...
@@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Do the Spalart-Allmaras steady-state case
(
cd
motorBike
&&
foamRunTutorials
)
if
!
is
Test
$@
if
not
Test
$@
then
# Clone the steady-state case to the LES case
cloneParallelCase motorBike motorBikeLES
...
...
tutorials/mesh/foamyHexMesh/Allrun
View file @
fe140cd6
...
...
@@ -9,7 +9,7 @@ cd ${0%/*} || exit 1 # Run from this directory
(
cd
blob
&&
./Allrun
$*
)
(
cd
simpleShapes
&&
./Allrun
$*
)
if
!
is
Test
$@
if
not
Test
$@
then
(
cd
flange
&&
./Allrun
$*
)
(
cd
mixerVessel
&&
./Allrun
$*
)
...
...
tutorials/multiphase/interFoam/RAS/damBreak/Allrun
View file @
fe140cd6
...
...
@@ -25,7 +25,7 @@ setDamBreakFine ()
(
cd
damBreak
&&
foamRunTutorials
)
if
!
is
Test
$@
if
not
Test
$@
then
# Clone case
cloneCase damBreak damBreakFine
...
...
tutorials/multiphase/interFoam/laminar/damBreak/Allrun
View file @
fe140cd6
...
...
@@ -24,7 +24,7 @@ setDamBreakFine ()
# Do damBreak
(
cd
damBreak
&&
foamRunTutorials
)
if
!
is
Test
$@
if
not
Test
$@
then
# Clone case
cloneCase damBreak damBreakFine
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment