EGSnrc icon indicating copy to clipboard operation
EGSnrc copied to clipboard

Fix egs xyzrepeater bug

Open mainegra opened this issue 1 year ago • 0 comments

Fix bug in EGS_XYZRepeater hownear

- Typo in hownear when particle in bounding box determining which of
  the repeated geometries to check:

  Using nz rather than nxy when computing index of repeated geometry array
  results in addressing array index out of bounds with subsequent segfault error.

  Showed when eletron transport turned ON up during dose calculations around
  a CivaDot source using egs_dose_scoring and egs_app and 2 microns regions.

  It did not affect photon-only nor egs_kerma calculations since there is no
  call to hownear. ;-)

mainegra avatar Oct 20 '23 13:10 mainegra