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:
@ -24,9 +24,6 @@ intersectSurfaces()
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
# Get number of processors to run on
|
||||
nProcs=$(getNumberOfProcessors)
|
||||
|
||||
\rm -rf 0
|
||||
|
||||
|
||||
@ -88,16 +85,16 @@ runApplication decomposePar -region backgroundMeshDecomposition
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
|
||||
runParallel foamyHexMesh $nProcs
|
||||
runParallel foamyHexMesh
|
||||
|
||||
runParallel collapseEdges $nProcs -collapseFaces -latestTime
|
||||
runParallel collapseEdges -collapseFaces -latestTime
|
||||
mv log.collapseEdges log.collapseFaces
|
||||
|
||||
#\cp system/collapseDict.indirectPatchFaces system/collapseDict
|
||||
#runParallel collapseEdges $nProcs -collapseFaceSet indirectPatchFaces -latestTime
|
||||
#runParallel collapseEdges -collapseFaceSet indirectPatchFaces -latestTime
|
||||
#mv log.collapseEdges log.collapseFaceSet
|
||||
|
||||
runParallel checkMesh $nProcs -allTopology -allGeometry -latestTime
|
||||
runParallel checkMesh -allTopology -allGeometry -latestTime
|
||||
|
||||
runApplication reconstructParMesh -latestTime
|
||||
|
||||
|
||||
@ -9,9 +9,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
# Get number of processors to run on
|
||||
nProcs=$(getNumberOfProcessors)
|
||||
|
||||
\rm -rf 0
|
||||
|
||||
runApplication createBaffles -overwrite
|
||||
@ -31,7 +28,7 @@ runApplication setFields
|
||||
runApplication decomposePar -force
|
||||
|
||||
# Run
|
||||
runParallel $application $nProcs
|
||||
runParallel $application
|
||||
|
||||
# Reconstruct
|
||||
runApplication reconstructPar -noFunctionObjects
|
||||
|
||||
Reference in New Issue
Block a user