TUT: adjust tutorials for test loop

This commit is contained in:
Mark Olesen
2020-12-22 12:16:50 +01:00
parent e58b59ed6f
commit 7bdb509494
11 changed files with 49 additions and 22 deletions

View File

@ -1,6 +1,5 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
(cd precursor && ./Allclean)

View File

@ -1,6 +1,5 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
# Run a precursor init case

View File

@ -7,6 +7,6 @@ vibroAcousticCase="../main"
cleanCase0
rm -rf $vibroAcousticCase/constant/boundaryData
rm -rf "$vibroAcousticCase"/constant/boundaryData
# -----------------------------------------------------------------------------

View File

@ -3,7 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
[[ -d constant/polyMesh ]] || runApplication ./Allrun.pre
# Generate mesh if required
[ -d constant/polyMesh ] || ./Allrun.pre
restore0Dir
@ -14,7 +15,7 @@ runParallel $(getApplication)
vibroAcousticCase="../main"
dataDir="postProcessing/surfaces/window"
mkdir -p "$vibroAcousticCase/constant/boundaryData"
cp -rf "$dataDir" "$vibroAcousticCase/constant/boundaryData/window"
mkdir -p "$vibroAcousticCase"/constant/boundaryData
cp -rf "$dataDir" "$vibroAcousticCase"/constant/boundaryData/window
# -----------------------------------------------------------------------------