mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: check for existence of polyMesh before changing into it
This commit is contained in:
@ -67,13 +67,15 @@ cleanCase()
|
||||
rm -rf forces* > /dev/null 2>&1
|
||||
rm -rf sets > /dev/null 2>&1
|
||||
rm -rf system/machines > /dev/null 2>&1
|
||||
(cd constant/polyMesh && \
|
||||
rm -rf \
|
||||
allOwner* cell* face* meshModifiers* \
|
||||
owner* neighbour* point* edge* \
|
||||
cellLevel* pointLevel* refinementHistory* surfaceIndex* sets \
|
||||
> /dev/null 2>&1 \
|
||||
)
|
||||
if [ -d "constant/polyMesh" ]; then
|
||||
(cd constant/polyMesh && \
|
||||
rm -rf \
|
||||
allOwner* cell* face* meshModifiers* \
|
||||
owner* neighbour* point* edge* \
|
||||
cellLevel* pointLevel* refinementHistory* surfaceIndex* sets \
|
||||
> /dev/null 2>&1 \
|
||||
)
|
||||
fi
|
||||
(cd constant && \
|
||||
rm -rf \
|
||||
cellToRegion cellLevel* pointLevel* \
|
||||
|
||||
Reference in New Issue
Block a user