Skip to content
Snippets Groups Projects
Commit 1eca13ae authored by Henry Weller's avatar Henry Weller
Browse files

CleanFunctions: Check the constant directory exists before cleaning it

parent 533bae38
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
......@@ -94,11 +94,14 @@ cleanCase()
> /dev/null 2>&1 \
)
fi
(cd constant && \
rm -rf \
cellToRegion cellLevel* pointLevel* \
> /dev/null 2>&1 \
)
if [ -d constant ]
then
(cd constant && \
rm -rf \
cellToRegion cellLevel* pointLevel* \
> /dev/null 2>&1 \
)
fi
rm -rf constant/tetDualMesh > /dev/null 2>&1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment