Problems converting field02 from Gun to GPS

_Geant4 Version: 11.0.0
_Operating System:_Sonoma 14.3
_Compiler/Version: X code 15.3
_CMake Version:_3.29.2

Hi all,

I previously successfully changed the field02 example from Gun to GPS on a different machine:

_Geant4 Version: 10.04.p03
_Operating System:_Ubuntu 16.04
_Compiler/Version:_gcc 5.4
_CMake Version:_3.5.2

But when I attempt to do so on a new install the code compiles correctly but as soon as I /run/beamOn the application crashes c citing a set fault and no more details.

I notice that there seem to be considerable differences in the code between the two examples of field02 (G4 versions 10.04.p03 and 11.0.0).

Am I missing something trivial?



What modifications did you make to field02 and then what calls/commands are you using to run it (so set up the GPS etc)?

Hi Morgan,

thanks for replying. I started again but this time as simple as possible and no problems this time.