mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: skip some tutorials when dynamicCode is not available
- silence failed restoration of controlDict from controlDict.orig (idempotent?)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
11
tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allrun
Executable file
11
tutorials/multiphase/overInterDyMFoam/floatingBody/background/Allrun
Executable 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)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user