Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
2e0e4de2
Commit
2e0e4de2
authored
7 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
TUT: clean out old tutorial build directories
parent
bba7511c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tutorials/Allclean
+9
-0
9 additions, 0 deletions
tutorials/Allclean
tutorials/Alltest
+11
-16
11 additions, 16 deletions
tutorials/Alltest
with
20 additions
and
16 deletions
tutorials/Allclean
+
9
−
0
View file @
2e0e4de2
...
...
@@ -3,6 +3,15 @@ cd ${0%/*} || exit 1 # Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/LogFunctions
# Tutorial log-file functions
echo
"--------"
# Remove old build/ directory
buildDir
=
"
$WM_PROJECT_DIR
/build/
${
WM_OPTIONS
}
/
${
PWD
##*/
}
"
if
[
-d
"
$buildDir
"
]
then
echo
"Removing old build directory:
$buildDir
"
1>&2
rm
-rf
$buildDir
fi
removeLogs
echo
"Cleaning tutorials ..."
...
...
This diff is collapsed.
Click to expand it.
tutorials/Alltest
+
11
−
16
View file @
2e0e4de2
...
...
@@ -7,20 +7,8 @@
# \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
# This file is part of OpenFOAM, licensed under GNU General Public License
# <http://www.gnu.org/licenses/>.
#
# Script
# Alltest
...
...
@@ -101,9 +89,8 @@ done
#------------------------------------------------------------------------------
#
#
s
et up a default scheme on all schemes
#
S
et up a default scheme on all schemes
#
setDefaultFvSchemes
()
{
...
...
@@ -180,6 +167,14 @@ then
rm
-rf
$TEST_RUN_DIR
fi
# Remove old build/ directory
buildDir
=
"
$WM_PROJECT_DIR
/build/
${
WM_OPTIONS
}
/
${
TEST_RUN_DIR
##*/
}
"
if
[
-d
"
$buildDir
"
]
then
echo
"Removing old build directory:
$buildDir
"
1>&2
rm
-rf
$buildDir
fi
echo
"Modifying
${
MAIN_CONTROL_DICT
}
"
1>&2
if
[
-e
${
MAIN_CONTROL_DICT
}
.orig
]
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment