#!/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions
#------------------------------------------------------------------------------

./Allrun.pre

restore0Dir

#Recommended to use 256 processors for this run
sed -i 's/12/256/g' system/decomposeParDict

rm log.decomposePar

rm -rf processor*

runApplication decomposePar

runParallel $(getApplication)

runApplication reconstructPar

runApplication foamToEnsight

#------------------------------------------------------------------------------
