mcnptools icon indicating copy to clipboard operation
mcnptools copied to clipboard

Segfault with total neutron flux

Open moatazharb opened this issue 1 year ago • 1 comments

meshtal2tk gives a segfault for total neutron flux results with mcnp6.1. MCNP gives the upper energy bound as 5.00E+01. The issue doesn't appear with a total photon flux in the same mesh tally file. When replacing the upper energy bound for neutrons from 5.00E+01 to 1.00E+36, that of the photons, the tool succeeds in generating the vts files. The lower energy bound doesn't seem to affect this, since the tested meshtal file had 1.00E-03 for photons and 1.00E-11 for neutrons.

moatazharb avatar Jun 06 '24 19:06 moatazharb

This could be related to #2: MCNPTools tries to compare to a sometimes nonexistent "Total" bin. Setting the upper bound that high would eliminate the check.

tjlaboss avatar Apr 16 '25 20:04 tjlaboss