From 6202f32499b5ab62fb978587432ef3c9b1fbaa86 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 12 Apr 2022 10:29:37 +0200 Subject: [PATCH] Updated run_ola.sh --- olaflow/run_ola.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/olaflow/run_ola.sh b/olaflow/run_ola.sh index 4cfbf13..b337106 100755 --- a/olaflow/run_ola.sh +++ b/olaflow/run_ola.sh @@ -4,7 +4,7 @@ export inp="of" read -p "Output: " out cp -r --reflink $inp $out -cd $out +pushd $out source /opt/OpenFOAM/OpenFOAM-9/etc/bashrc mkdir log echo Generating mesh @@ -15,12 +15,12 @@ cp -r 0.org 0 echo Setting initial fields setFields > log/setFields.log -pushd .. +popd echo Converting swash output to initial condition python -m processing.sws_ola -o $out echo Converting swash output to boundary condition python -m processing.sws_wavedict_paddle -o $out -popd +pushd $out echo Generating parallel cases decomposePar > log/decomposePar.log @@ -28,5 +28,10 @@ echo Running model mpirun -np 4 olaFlow -parallel > log/olaFlow.log echo Merging parallel cases reconstructPar > log/reconstructPar.log +echo Removing parallel cases +rm -r processor* + +popd +7z a $out.7z $out echo END