mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user