mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: runParallel ignores presence of log file (closes #203)
- was a small typo
This commit is contained in:
@ -54,7 +54,6 @@ getApplication()
|
|||||||
|
|
||||||
runApplication()
|
runApplication()
|
||||||
{
|
{
|
||||||
LOG_NAME=
|
|
||||||
APP_RUN=
|
APP_RUN=
|
||||||
LOG_IGNORE=false
|
LOG_IGNORE=false
|
||||||
LOG_APPEND=false
|
LOG_APPEND=false
|
||||||
@ -100,15 +99,15 @@ runApplication()
|
|||||||
|
|
||||||
runParallel()
|
runParallel()
|
||||||
{
|
{
|
||||||
LOG_NAME=
|
|
||||||
APP_RUN=
|
APP_RUN=
|
||||||
# Store any parsed additional arguments e.g. decomposeParDict
|
|
||||||
APP_PARARGS=
|
|
||||||
LOG_IGNORE=false
|
LOG_IGNORE=false
|
||||||
LOG_APPEND=false
|
LOG_APPEND=false
|
||||||
LOG_SUFFIX=
|
LOG_SUFFIX=
|
||||||
|
|
||||||
|
# Store any parsed additional arguments e.g. decomposeParDict
|
||||||
|
APP_PARARGS=
|
||||||
# Check the default decomposeParDict if available
|
# Check the default decomposeParDict if available
|
||||||
nProcs=$(getNumberOfProcessors "system/decomposeParDict")
|
nProcs=$(getNumberOfProcessors system/decomposeParDict)
|
||||||
|
|
||||||
# Parse options and executable
|
# Parse options and executable
|
||||||
while [ $# -gt 0 ] && [ -z "$APP_RUN" ]; do
|
while [ $# -gt 0 ] && [ -z "$APP_RUN" ]; do
|
||||||
@ -144,7 +143,7 @@ runParallel()
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f log.$SUFFIX ] && [ "$LOG_IGNORE" = "false" ]
|
if [ -f log.$LOG_SUFFIX ] && [ "$LOG_IGNORE" = "false" ]
|
||||||
then
|
then
|
||||||
echo "$APP_NAME already run on $PWD:" \
|
echo "$APP_NAME already run on $PWD:" \
|
||||||
"remove log file 'log.$LOG_SUFFIX' to re-run"
|
"remove log file 'log.$LOG_SUFFIX' to re-run"
|
||||||
|
|||||||
Reference in New Issue
Block a user