Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1eca13ae
Commit
1eca13ae
authored
Jan 09, 2016
by
Henry Weller
Browse files
CleanFunctions: Check the constant directory exists before cleaning it
parent
533bae38
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/tools/CleanFunctions
View file @
1eca13ae
...
...
@@ -2,7 +2,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2011-201
6
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment