mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +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:
@ -34,7 +34,7 @@ refineMeshByCellSet 1 2 3
|
||||
#runApplication mapFields ../throttle -sourceTime latestTime
|
||||
|
||||
runApplication decomposePar
|
||||
runParallel $application 4
|
||||
runParallel $application
|
||||
runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -8,7 +8,7 @@ runApplication blockMesh
|
||||
cp -r 0.org 0
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel $(getApplication) 4
|
||||
runParallel $(getApplication)
|
||||
runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -39,9 +39,9 @@ runApplication setFields
|
||||
|
||||
runApplication decomposePar
|
||||
|
||||
runParallel renumberMesh 8 -overwrite
|
||||
runParallel renumberMesh -overwrite
|
||||
|
||||
runParallel $(getApplication) 8
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructPar
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ application=`getApplication`
|
||||
runApplication decomposePar -force
|
||||
|
||||
# Run
|
||||
runParallel $application 6
|
||||
runParallel $application
|
||||
|
||||
# Reconstruct
|
||||
runApplication reconstructPar -noFunctionObjects
|
||||
|
||||
@ -47,7 +47,7 @@ cloneCase damBreak damBreakFine
|
||||
cp ../damBreak/0/alpha.water.org 0/alpha.water
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel `getApplication` 4
|
||||
runParallel `getApplication`
|
||||
runApplication reconstructPar
|
||||
)
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ cloneCase damBreak damBreakFine
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel `getApplication` 4
|
||||
runParallel `getApplication`
|
||||
runApplication reconstructPar
|
||||
)
|
||||
|
||||
|
||||
@ -39,9 +39,9 @@ runApplication setFields
|
||||
|
||||
runApplication decomposePar
|
||||
|
||||
runParallel renumberMesh 8 -overwrite
|
||||
runParallel renumberMesh -overwrite
|
||||
|
||||
runParallel $(getApplication) 8
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructPar
|
||||
|
||||
|
||||
@ -8,6 +8,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication decomposePar
|
||||
|
||||
runParallel `getApplication` 4
|
||||
runParallel `getApplication`
|
||||
|
||||
runApplication reconstructPar
|
||||
|
||||
@ -13,7 +13,7 @@ cp -r 0.org 0
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel $application 4
|
||||
runParallel $application
|
||||
runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -14,7 +14,7 @@ runApplication setFields
|
||||
|
||||
#runApplication $application
|
||||
#runApplication decomposePar
|
||||
#runParallel $application 4
|
||||
#runParallel $application
|
||||
#runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -12,7 +12,7 @@ cp -r 0.org 0
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel $application 4
|
||||
runParallel $application
|
||||
runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
Reference in New Issue
Block a user