Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
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
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
a95ca829
Commit
a95ca829
authored
8 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
BUG: runParallel ignores presence of log file (closes
#203
)
- was a small typo
parent
c3ec65d3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/tools/RunFunctions
+6
-7
6 additions, 7 deletions
bin/tools/RunFunctions
with
6 additions
and
7 deletions
bin/tools/RunFunctions
+
6
−
7
View file @
a95ca829
...
...
@@ -54,7 +54,6 @@ getApplication()
runApplication
()
{
LOG_NAME
=
APP_RUN
=
LOG_IGNORE
=
false
LOG_APPEND
=
false
...
...
@@ -100,18 +99,18 @@ runApplication()
runParallel
()
{
LOG_NAME
=
APP_RUN
=
# Store any parsed additional arguments e.g. decomposeParDict
APP_PARARGS
=
LOG_IGNORE
=
false
LOG_APPEND
=
false
LOG_SUFFIX
=
# Store any parsed additional arguments e.g. decomposeParDict
APP_PARARGS
=
# Check the default decomposeParDict if available
nProcs
=
$(
getNumberOfProcessors
"
system/decomposeParDict
"
)
nProcs
=
$(
getNumberOfProcessors system/decomposeParDict
)
# Parse options and executable
while
[
$#
-gt
0
]
&&
[
-z
"
$APP_RUN
"
]
;
do
while
[
$#
-gt
0
]
&&
[
-z
"
$APP_RUN
"
]
;
do
key
=
"
$1
"
case
"
$key
"
in
-append
|
-a
)
...
...
@@ -144,7 +143,7 @@ runParallel()
shift
done
if
[
-f
log.
$SUFFIX
]
&&
[
"
$LOG_IGNORE
"
=
"false"
]
if
[
-f
log.
$
LOG_
SUFFIX
]
&&
[
"
$LOG_IGNORE
"
=
"false"
]
then
echo
"
$APP_NAME
already run on
$PWD
:"
\
"remove log file 'log.
$LOG_SUFFIX
' to re-run"
...
...
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