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 forces* > /dev/null 2>&1
|
||||||
rm -rf sets > /dev/null 2>&1
|
rm -rf sets > /dev/null 2>&1
|
||||||
rm -rf system/machines > /dev/null 2>&1
|
rm -rf system/machines > /dev/null 2>&1
|
||||||
(cd constant/polyMesh && \
|
if [ -d "constant/polyMesh" ]; then
|
||||||
rm -rf \
|
(cd constant/polyMesh && \
|
||||||
allOwner* cell* face* meshModifiers* \
|
rm -rf \
|
||||||
owner* neighbour* point* edge* \
|
allOwner* cell* face* meshModifiers* \
|
||||||
cellLevel* pointLevel* refinementHistory* surfaceIndex* sets \
|
owner* neighbour* point* edge* \
|
||||||
> /dev/null 2>&1 \
|
cellLevel* pointLevel* refinementHistory* surfaceIndex* sets \
|
||||||
)
|
> /dev/null 2>&1 \
|
||||||
|
)
|
||||||
|
fi
|
||||||
(cd constant && \
|
(cd constant && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
cellToRegion cellLevel* pointLevel* \
|
cellToRegion cellLevel* pointLevel* \
|
||||||
|
|||||||
Reference in New Issue
Block a user