#!/bin/bash
cd ${0%/*} || exit 1                        # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions  # Tutorial clean functions

cleanCase

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

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