ENH: iglooWithFridges: demonstrate threaded, collated handling. See #2194.
This commit is contained in:
parent
c3c23c3cb2
commit
9024441566
@ -6,8 +6,11 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
# settings
|
||||
|
||||
# flag to enable computations in parallel mode
|
||||
parallel=false
|
||||
parallel=true
|
||||
|
||||
# flag to set up collated writing and threaded writing (with 1Gb write
|
||||
# buffer)
|
||||
fileHandler="-fileHandler collated -opt-switch maxThreadFileBufferSize=-1E9"
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -24,9 +27,10 @@ cp -f \
|
||||
if [ "$parallel" = true ]
|
||||
then
|
||||
|
||||
runApplication decomposePar -fileHandler collated
|
||||
runApplication decomposePar $fileHandler
|
||||
#runParallel -s decompose redistributePar -decompose $fileHandler
|
||||
|
||||
runParallel snappyHexMesh -overwrite -fileHandler collated
|
||||
runParallel snappyHexMesh -overwrite $fileHandler
|
||||
|
||||
## Remove any include files from the field dictionaries
|
||||
( mkdir -p processors2/0 && \
|
||||
@ -35,14 +39,15 @@ then
|
||||
foamDictionary "$f" > "../processors2/0/$f"; done \
|
||||
)
|
||||
|
||||
runParallel $(getApplication) -fileHandler collated
|
||||
runParallel $(getApplication) $fileHandler
|
||||
|
||||
## Run reconstructParMesh with collated as well since writes
|
||||
## constant/polyMesh/cellProcAddressing
|
||||
runApplication reconstructParMesh -constant -fileHandler collated
|
||||
|
||||
runApplication reconstructParMesh -constant $fileHandler
|
||||
runApplication reconstructPar
|
||||
|
||||
#runParallel -s reconstruct redistributePar -reconstruct $fileHandler
|
||||
|
||||
else
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
Loading…
Reference in New Issue
Block a user