#!/bin/bash

#===================================================================#
# allrun script for testcase as part of test routine 
# run settlingTest CFD part
# Christoph Goniva - Feb. 2011
#===================================================================#

#- source CFDEM env vars
. ~/.bashrc

#- include functions
source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh

#--------------------------------------------------------------------------------#
#- define variables
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
logpath=$casePath
headerText="SingleBubbleRising"
logfileName="log_$headerText"
solverName="cfdemSolverVoF"
nrProcs="8"
machineFileName="none"   # yourMachinefileName | none
debugMode="off"          # on | off| strict | profile
postproc="false"
#--------------------------------------------------------------------------------#

#- call function to run a parallel CFD-DEM case
parCFDDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode $reconstuctCase

if [$postproc == "true"]
	then
	cd $casePath/DEM/post
	cfdemLpp *.*run
	
	cd $casePath/CFD
	reconstructPar
fi
