tutorials/mesh/foamy.*Mesh::Allrun: Only run if FOAMY_HEX_MESH set

This commit is contained in:
Henry Weller
2017-07-25 17:38:53 +01:00
parent dbb428a3a8
commit a628b8838a
2 changed files with 42 additions and 12 deletions

View File

@ -8,17 +8,19 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
( if [ -n "$FOAMY_HEX_MESH" ]
then
(
cd blob || exit cd blob || exit
./Allrun $* ./Allrun $*
) )
( (
cd simpleShapes || exit cd simpleShapes || exit
./Allrun $* ./Allrun $*
) )
if ! isTest $@ if ! isTest $@
then then
( (
cd flange || exit cd flange || exit
./Allrun $* ./Allrun $*
@ -27,6 +29,7 @@ then
cd mixerVessel || exit cd mixerVessel || exit
./Allrun $* ./Allrun $*
) )
fi
fi fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -0,0 +1,27 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Any cases that are links to solver test cases and are run when the Allrun
# scripts of those solvers are run. This script avoids meshing these cases
# twice.
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
if [ -n "$FOAMY_HEX_MESH" ]
then
(
cd jaggedBoundary || exit
./Allrun $*
)
(
cd OpenCFD || exit
./Allrun $*
)
(
cd square || exit
./Allrun $*
)
fi
#------------------------------------------------------------------------------