CleanFunctions: Check the constant directory exists before cleaning it
This commit is contained in:
parent
de7ffbe62e
commit
c0e81a3674
1 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue