TUT: skip some tutorials when dynamicCode is not available

- silence failed restoration of controlDict from controlDict.orig
  (idempotent?)
This commit is contained in:
Mark Olesen
2020-08-06 18:25:56 +02:00
parent 9ef144118d
commit 44052de594
24 changed files with 77 additions and 5 deletions

View File

@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
canCompile || exit 0 # Dynamic code
restore0Dir
runApplication blockMesh

View File

@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
canCompile || exit 0 # Dynamic code
runApplication blockMesh
runApplication topoSet
runApplication subsetMesh -overwrite c0 -patch floatingObject

View File

@ -0,0 +1,11 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
canCompile || exit 0 # Dynamic code
runApplication blockMesh
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
canCompile || exit 0 # Dynamic code
# Create background mesh
runApplication blockMesh

View File

@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
canCompile || exit 0 # Dynamic code
./Allrun.pre
# Serial

View File

@ -8,7 +8,7 @@ cleanCase0
if notTest $@
then
mv -f system/controlDict.orig system/controlDict
mv -f system/controlDict.orig system/controlDict 2>/dev/null
fi
#------------------------------------------------------------------------------

View File

@ -8,7 +8,7 @@ cleanCase0
if notTest $@
then
mv -f system/controlDict.orig system/controlDict
mv -f system/controlDict.orig system/controlDict 2>/dev/null
fi
#------------------------------------------------------------------------------

View File

@ -8,7 +8,7 @@ cleanCase0
if notTest $@
then
mv -f system/controlDict.orig system/controlDict
mv -f system/controlDict.orig system/controlDict 2>/dev/null
fi
#------------------------------------------------------------------------------

View File

@ -8,7 +8,7 @@ cleanCase0
if notTest $@
then
mv -f system/controlDict.orig system/controlDict
mv -f system/controlDict.orig system/controlDict 2>/dev/null
fi
#------------------------------------------------------------------------------

View File

@ -8,7 +8,7 @@ cleanCase0
if notTest $@
then
mv -f system/controlDict.orig system/controlDict
mv -f system/controlDict.orig system/controlDict 2>/dev/null
fi
#------------------------------------------------------------------------------

View File

@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
canCompile || exit 0 # Dynamic code
restore0Dir
runApplication blockMesh