Seg fault when storeTrajectories=1

Issue #195 resolved
William Shields created an issue

BDSIM is seg-faulting when storeTrajectories=1. The lattice I was using is attached.

The problem is that in BDSOutputROOTEventTrajectories, line 69 uses the LocateGlobalPointAndSetup method with the second argument being a null pointer. In that method in BDSAuxiliaryNavigator, on line 56, it attempts to get the unit vector from that variable (the null pointer), causing the crash.

I'm assuming that the second argument back in BDSOutputROOTEventTrajectories should be the momentum rather than a nullptr??

Comments (1)

  1. Log in to comment