mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add canCompile test to RunFunctions
- allow conditional skipping of tutorials (for example) if wmake or the expected compiler is not available
This commit is contained in:
@ -3,6 +3,12 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if ! canCompile
|
||||
then
|
||||
echo "skipping tutorial $PWD"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
m4 < ./system/blockMeshDict.m4 > ./system/blockMeshDict
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
@ -15,6 +15,12 @@ then
|
||||
endTime=25
|
||||
fi
|
||||
|
||||
if ! canCompile
|
||||
then
|
||||
echo "skipping tutorial $PWD"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Compute the case in 'serial' mode, and collect the data
|
||||
|
||||
@ -3,6 +3,12 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if ! canCompile
|
||||
then
|
||||
echo "skipping tutorial $PWD"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication makeFaMesh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user