EGSnrc icon indicating copy to clipboard operation
EGSnrc copied to clipboard

Fix parallel phsp source partition

Open blakewalters opened this issue 1 month ago • 0 comments

This fix divides phase space sources used in parallel runs into npar*nchunk equal segments, where npar is the no. of parallel runs and nchunk is the no. of chunks (defaults to 10). Each chunk of the parallel run is then assigned its own segment of the phase space source outside of which it will not sample. This scheme, identical to that used in the Mortran codes, should ensure relatively even sampling of the phase space source over the entire parallel run. Note that any remaining histories after completion of npar*nchunk chunks are assigned to the last segment.

Fixes issue #1117

blakewalters avatar May 09 '24 16:05 blakewalters