bin/tools/RunFunctions: runParallel now obtains the number of processors from numberOfSubdomains

in decomposeParDict.

This default number of processors may be overridden by the new "-np"
option to runParallel which must be specified before the application
name e.g.:

runParallel -np 4 pisoFoam
This commit is contained in:
Henry Weller
2016-01-27 14:19:25 +00:00
parent 8446f25f1f
commit 20204cb468
40 changed files with 73 additions and 83 deletions

View File

@ -8,7 +8,7 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication decomposePar
runParallel $(getApplication) 4 &
runParallel $(getApplication) &
./externalSolver

View File

@ -29,7 +29,7 @@ done
runApplication decomposePar -allRegions
# Run
runParallel `getApplication` 4
runParallel `getApplication`
# Reconstruct
runApplication reconstructPar -allRegions

View File

@ -34,7 +34,7 @@ runApplication `getApplication`
#runApplication decomposePar -allRegions
#
## Run
#runParallel `getApplication` 4
#runParallel `getApplication`
#
## Reconstruct
#runApplication reconstructPar -allRegions

View File

@ -13,7 +13,7 @@ mv log.decomposePar log.decomposePar.air
runApplication decomposePar -region porous
mv log.decomposePar log.decomposePar.porous
runParallel $(getApplication) 4
runParallel $(getApplication)
runApplication reconstructPar -latestTime -region air
mv log.reconstructPar log.reconstructPar.air

View File

@ -28,7 +28,7 @@ do
done
# Run
runParallel `getApplication` 4
runParallel `getApplication`
# Reconstruct
runApplication reconstructPar -allRegions