PencilBeam doVisit() method sets elementID to 1
The elementID of the PencilBeam is always set to 1, regardless of its defined position. I don't know the reason for this, but while we are in debug mode, an assertion fails with this practice, because the MFP (Mean Free Path) is now infinite.
Regardless of the question the assertion checking if MFP is < 1000, I think hardcoding the elementID to 1 isn't the best practice.
Edited by Fynn Schwiegelshohn