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:
@ -10,7 +10,7 @@ application=`getApplication`
|
||||
|
||||
#runApplication $application
|
||||
runApplication decomposePar
|
||||
runParallel $application 4
|
||||
runParallel $application
|
||||
runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -8,6 +8,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication decomposePar
|
||||
|
||||
runParallel $(getApplication) 4
|
||||
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
|
||||
|
||||
@ -24,7 +24,7 @@ cp -r 0.org 0
|
||||
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
|
||||
mv 0/pointDisplacement.unmapped 0/pointDisplacement
|
||||
runApplication decomposePar
|
||||
runParallel `getApplication` 4
|
||||
runParallel `getApplication`
|
||||
runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -14,7 +14,7 @@ runApplication blockMesh
|
||||
|
||||
#- Run parallel
|
||||
runApplication decomposePar -cellDist
|
||||
runParallel $application 4
|
||||
runParallel $application
|
||||
runApplication reconstructPar
|
||||
|
||||
runApplication postChannel
|
||||
|
||||
@ -11,7 +11,7 @@ ls -d processor* | xargs -I {} rm -rf ./{}/0 $1
|
||||
ls -d processor* | xargs -I {} mv ./{}/500 ./{}/0 $1
|
||||
ls -d processor* | xargs -I {} rm -rf ./{}/0/uniform $1
|
||||
|
||||
runParallel pisoFoam 8
|
||||
runParallel pisoFoam
|
||||
|
||||
runApplication reconstructParMesh -constant -mergeTol 1e-6
|
||||
|
||||
|
||||
@ -15,16 +15,16 @@ cp system/decomposeParDict.hierarchical system/decomposeParDict
|
||||
runApplication decomposePar
|
||||
|
||||
cp system/decomposeParDict.ptscotch system/decomposeParDict
|
||||
runParallel snappyHexMesh 8 -overwrite -parallel
|
||||
runParallel snappyHexMesh -overwrite -parallel
|
||||
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
|
||||
|
||||
runParallel renumberMesh 8 -overwrite
|
||||
runParallel renumberMesh -overwrite
|
||||
|
||||
runParallel potentialFoam 8 -initialiseUBCs
|
||||
runParallel potentialFoam -initialiseUBCs
|
||||
|
||||
runParallel `getApplication` 8
|
||||
runParallel `getApplication`
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -11,7 +11,7 @@ runApplication surfaceFeatureExtract
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication decomposePar
|
||||
runParallel snappyHexMesh 6 -overwrite
|
||||
runParallel snappyHexMesh -overwrite
|
||||
|
||||
#- For non-parallel running
|
||||
#cp -r 0.org 0 > /dev/null 2>&1
|
||||
@ -20,9 +20,9 @@ runParallel snappyHexMesh 6 -overwrite
|
||||
ls -d processor* | xargs -I {} rm -rf ./{}/0
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0
|
||||
|
||||
runParallel patchSummary 6
|
||||
runParallel potentialFoam 6
|
||||
runParallel $(getApplication) 6
|
||||
runParallel patchSummary
|
||||
runParallel potentialFoam
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructParMesh -constant
|
||||
runApplication reconstructPar -latestTime
|
||||
|
||||
@ -14,7 +14,7 @@ cp -r 0.org 0
|
||||
|
||||
#runApplication $application
|
||||
runApplication decomposePar -cellDist
|
||||
runParallel $application 5
|
||||
runParallel $application
|
||||
|
||||
runApplication reconstructPar
|
||||
|
||||
|
||||
@ -12,14 +12,14 @@ cp system/decomposeParDict.hierarchical system/decomposeParDict
|
||||
runApplication decomposePar
|
||||
|
||||
cp system/decomposeParDict.ptscotch system/decomposeParDict
|
||||
runParallel snappyHexMesh 4 -overwrite
|
||||
runParallel snappyHexMesh -overwrite
|
||||
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1
|
||||
|
||||
runParallel topoSet 4
|
||||
runParallel `getApplication` 4
|
||||
runParallel topoSet
|
||||
runParallel `getApplication`
|
||||
|
||||
runApplication reconstructParMesh -constant
|
||||
runApplication reconstructPar
|
||||
|
||||
Reference in New Issue
Block a user