#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

keepCases="cavity cavityGrade cavityClipped elbow"
loseCases="cavityFine cavityHighRe"

for caseName in $keepCases
do
(
    cd $caseName || exit

    foamCleanTutorials

    if [ "$caseName" = elbow ]
    then
        rm -rf fluentInterface
    fi
)
done

for caseName in $loseCases
do
    removeCase $caseName
done


(cd elbow && ./Allclean)

# ----------------------------------------------------------------- end-of-file
