#!/bin/bash
# Change to bash to use arrays in well post process
cd ${0%/*} || exit 1                        # Run from this directory
alias echo='echo -e'                        # Correction to print \n with bash
shopt -s expand_aliases                     # Expand alias to all echo be echo -e
. $WM_PROJECT_DIR/bin/tools/CleanFunctions  # Tutorial clean functions

cleanCase

rm -rf 0 _* *.fms well*.stl resTemp.stl domainGeometry.stl resMeshingInput.txt CleanCase \
  ./sourceDir ./tmp  ./job ./inputData ./0.orig ./constant ./system ./VTK* ./PID.dat \
  ./salome_PORT ./faultRemoval ./imex.py /Allrun.resMeshing ./Allrun ./AllrunP* *.out \
  ./createPetroMesh.py ./AllrunS *. *.err *.obj checkDevices dpWell* checkDevices.w* > /dev/null 2>&1

rm -f *.csv *.png points

find . -name "*.json" ! -name "interface.json" -type f -delete
