mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: RunFunctions - updated retrieval of nProcs to suppress warning when no system/deomposeParDict
This commit is contained in:
@ -148,8 +148,9 @@ runParallel()
|
|||||||
|
|
||||||
# Store any parsed additional arguments e.g. decomposeParDict
|
# Store any parsed additional arguments e.g. decomposeParDict
|
||||||
APP_PARARGS=
|
APP_PARARGS=
|
||||||
# Check the default decomposeParDict if available
|
|
||||||
nProcs=$(getNumberOfProcessors system/decomposeParDict)
|
# Initialise number of procs to unset value
|
||||||
|
nProcs=-1
|
||||||
|
|
||||||
# Parse options and executable
|
# Parse options and executable
|
||||||
while [ $# -gt 0 ] && [ -z "$APP_RUN" ]; do
|
while [ $# -gt 0 ] && [ -z "$APP_RUN" ]; do
|
||||||
@ -185,6 +186,8 @@ runParallel()
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ "$nProcs" -eq -1 ] && nProcs=$(getNumberOfProcessors system/decomposeParDict)
|
||||||
|
|
||||||
if [ -f log.$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:" \
|
||||||
@ -213,7 +216,7 @@ cloneCase()
|
|||||||
else
|
else
|
||||||
echo "Cloning $2 case from $1"
|
echo "Cloning $2 case from $1"
|
||||||
mkdir $2
|
mkdir $2
|
||||||
cpfiles="0 system constant"
|
cpfiles="0.orig 0 system constant"
|
||||||
for f in $cpfiles
|
for f in $cpfiles
|
||||||
do
|
do
|
||||||
\cp -r $1/$f $2
|
\cp -r $1/$f $2
|
||||||
|
|||||||
Reference in New Issue
Block a user