Open guigoruiz1 opened 7 months ago
@guigoruiz1 I have not had a chance to look at the code itself yet, but I do have a suggestion. I notice that you're doing your /supernova/...
configurations after /run/initialize
. Generally, runManager->Initialize()
assumes that any kind of user configuration has been completed. I still have to go through the code to see if I'm correct in general, but you could test this quickly and see if we just need the documentation updated.
@kelseymh I have tried that but unfortunately it doesn't work.
I am not sure whether it is a problem with Geant4 4.11 or the changes implemented in version 3.0.0, but I am unable to run simulations which use
particle_type
SUPERNOVA. Thesupernova
class is initialised before theConfigManager
has the correct values from the macro. This causes the number of isotopes to simulate to be 0 when entering the loop.Here is a macro for testing: