mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CleanFunctions: Check the constant directory exists before cleaning it
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user