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

if [ "$1" = "-c" ] # continue run	
then
   runParallel $(getApplication)

else  # new run
   ./Allrun.pre

   if [ "$1" = "-p" ] 	
   then
      runApplication decomposePar
      runParallel $(getApplication)
     # runApplication reconstructPar
   else
      runApplication $(getApplication)
   fi
fi
#------------------------------------------------------------------------------
