-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
G4GDMLWrite::Write() complains if the GDML file already exists. This means running with /det/saveGdml true works only once, then the user is forced to set it back to false. And it gets somewhat annoying.
Exporting geometry to FLArE_only_newBabyMIND.gdml
G4GDML: Writing 'FLArE_only_newBabyMIND.gdml'...
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : InvalidSetup
issued by : G4GDMLWrite::Write()
File 'FLArE_only_newBabyMIND.gdml' already exists!
*** Fatal Exception *** core dump ***
**** Track information is not available at this moment
**** Step information is not available at this moment
-------- EEEE -------- G4Exception-END --------- EEEE -------
Proposed solution: if file exists, delete it before writing a new one (re-create behaviour).
benw22022
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers