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