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 cd265693f5
commit b3d47f0423
40 changed files with 73 additions and 83 deletions

View File

@ -1,9 +1,10 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp $FOAM_TUTORIALS/resources/geometry/cyclone.stl.gz constant/triSurface
runApplication blockMesh
@ -12,4 +13,6 @@ runApplication snappyHexMesh -overwrite
runApplication decomposePar
runParallel MPPICFoam $(echo processor* | wc -w)
runParallel MPPICFoam
# ----------------------------------------------------------------- end-of-file

View File

@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cd hopperInitialState
runApplication blockMesh
runApplication decomposePar
runParallel `getApplication` 4
runParallel `getApplication`
runApplication reconstructPar -latestTime
cd ..
@ -17,7 +17,7 @@ cp -r 0.org 0
runApplication blockMesh
runApplication mapFields ../hopperInitialState -sourceTime latestTime
runApplication decomposePar
runParallel `getApplication` 4
runParallel `getApplication`
runApplication reconstructPar
# ----------------------------------------------------------------- end-of-file

View File

@ -13,7 +13,7 @@ mv log.decomposePar log.decomposePar.wallFilmRegion
runApplication decomposePar
mv log.decomposePar log.decomposePar.primaryRegion
runParallel $application 4
runParallel $application
runApplication reconstructPar -region wallFilmRegion
mv log.reconstructPar log.reconstructPar.wallFilmRegion