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
|
||||
|
||||
wmake calcRadiusField
|
||||
wclean calcRadiusField
|
||||
|
||||
|
||||
Reference in New Issue
Block a user