mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: fileOperation: fix fileOperation::nProcs to handle multiple candidates
This commit is contained in:
committed by
Andrew Heather
parent
577f584446
commit
d6ba54bfec
@ -8,18 +8,19 @@ restore0Dir
|
||||
runApplication blockMesh
|
||||
|
||||
decompDict5="-decomposeParDict system/decomposeParDict.5"
|
||||
fileHandler="-fileHandler uncollated"
|
||||
|
||||
# redistributePar to do decomposition
|
||||
runParallel -s decompose redistributePar -decompose
|
||||
runParallel -s decompose redistributePar -decompose $fileHandler
|
||||
|
||||
# Bit of renumbering and running
|
||||
runParallel -s CuthillMcKee renumberMesh -overwrite
|
||||
runParallel -s CuthillMcKee icoFoam
|
||||
runParallel -s CuthillMcKee renumberMesh -overwrite $fileHandler
|
||||
runParallel -s CuthillMcKee icoFoam $fileHandler
|
||||
|
||||
# Bit of bad renumbering and running
|
||||
runParallel -s random renumberMesh \
|
||||
-overwrite -dict system/renumberMeshDict-random
|
||||
runParallel -s random icoFoam
|
||||
-overwrite -dict system/renumberMeshDict-random $fileHandler
|
||||
runParallel -s random icoFoam $fileHandler
|
||||
|
||||
# Pick up last result
|
||||
cp system/controlDict-latestTime system/controlDict
|
||||
@ -27,13 +28,13 @@ cp system/controlDict-latestTime system/controlDict
|
||||
# Redistribute to 5 processors. Note that new processors only get written
|
||||
# a mesh to the current time (0.505). Use -overwrite instead to write the
|
||||
# mesh to constant.
|
||||
runParallel -s 5 $decompDict5 redistributePar -cellDist
|
||||
runParallel -s 5 $decompDict5 redistributePar -cellDist $fileHandler
|
||||
|
||||
# Run a bit more
|
||||
runParallel -s 5 $decompDict5 icoFoam
|
||||
runParallel -s 5 $decompDict5 icoFoam $fileHandler
|
||||
|
||||
# Reconstruct mesh and results. Note the time argument to make sure we
|
||||
# only pick up the new decomposition
|
||||
runParallel -s reconstruct -np 5 redistributePar -reconstruct -time 0.505:
|
||||
runParallel -s reconstruct -np 5 redistributePar -reconstruct -time 0.505: $fileHandler
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user