Improved the basic tutorial clean functions.

This commit is contained in:
henry
2009-07-10 11:55:50 +01:00
parent d9b4966af2
commit 5f246c45e6
6 changed files with 10 additions and 27 deletions

View File

@ -61,12 +61,17 @@ cleanTimeDirectories ()
cleanCase ()
{
cleanTimeDirectories
rm -rf processor* > /dev/null 2>&1
rm -rf probes* > /dev/null 2>&1
rm -rf forces* > /dev/null 2>&1
rm -rf constant/polyMesh/{allOwner*,cell*,face*,meshModifiers*} \
rm -rf system/machines \
constant/polyMesh/{allOwner*,cell*,face*,meshModifiers*} \
constant/polyMesh/{owner*,neighbour*,point*,edge*} \
constant/polyMesh/{cellLevel*,pointLevel*,refinementHistory*,surfaceIndex*} \
constant/{cellLevel*,pointLevel*} \
constant/{cellToRegion,cellLevel*,pointLevel*} \
constant/polyMesh/sets/ \
VTK \
> /dev/null 2>&1
for f in `find . -name "*Dict"`
@ -76,13 +81,6 @@ cleanCase ()
done
}
cleanParallelCase ()
{
cleanCase
rm -rf processor* > /dev/null 2>&1
}
removeCase ()
{
echo "Removing $case case"