Skip to content
Snippets Groups Projects
Commit b74339ad authored by Mark OLESEN's avatar Mark OLESEN
Browse files

TUT: use newer faMeshDefinition location

STYLE: catch erroneous -prefix=false compilations
parent b9b1d709
Branches
No related merge requests found
......@@ -6,11 +6,17 @@ targetType=libso
# Build into FOAM_USER_{APPBIN,LIBBIN} unless otherwise specified with
# -prefix or FOAM_MODULE_{APPBIN,LIBBIN} env varables
#------------------------------------------------------------------------------
module=visualization
moduleName="visualization"
if [ "$FOAM_MODULE_PREFIX" = false ]
then
echo "Compilation of $moduleName is disabled (prefix=false)"
exit 0
fi
echo "========================================"
date "+%Y-%m-%d %H:%M:%S %z" 2>/dev/null || echo "date is unknown"
echo "Starting compile of $module with ${WM_PROJECT_DIR##*/}"
echo "Starting compile of $moduleName with ${WM_PROJECT_DIR##*/}"
echo " $WM_COMPILER $WM_COMPILER_TYPE compiler"
echo " ${WM_OPTIONS}, with ${WM_MPLIB} ${FOAM_MPI}"
echo " prefix = ${FOAM_MODULE_PREFIX:-default (user)}"
......@@ -22,7 +28,7 @@ src/Allwmake $targetType $*
echo
date "+%Y-%m-%d %H:%M:%S %z" 2>/dev/null || echo "date is unknown"
echo "========================================"
echo "Finished compile of $module with ${WM_PROJECT_DIR##*/}"
echo "Finished compile of $moduleName with ${WM_PROJECT_DIR##*/}"
echo " $WM_COMPILER $WM_COMPILER_TYPE compiler"
echo " ${WM_OPTIONS}, with ${WM_MPLIB} ${FOAM_MPI}"
echo
......
......@@ -4,11 +4,12 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
cleanTimeDirectories
cleanAuxiliary 2>/dev/null
cleanAuxiliary
cleanPostProcessing
cleanFaMesh
rm -rf processor*
rm -rf 0
#------------------------------------------------------------------------------
......@@ -3,6 +3,10 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
#NO blockMesh (pre-meshed geometry and pre-calculated U field)
runApplication makeFaMesh
runApplication $(getApplication)
......
......@@ -6,7 +6,7 @@ catalyst
scripts
(
// "<etc>caseDicts/insitu/catalyst/writeAll.py"
// "<etc>/caseDicts/insitu/catalyst/writeAll.py"
"<case>/showCs.py"
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment