GRIFFINCollaboration / detectorSimulations_v10

Geant4 version 10 of the simulation code for the GRIFFIN array and it's suite of ancillary detection systems.
MIT License
9 stars 14 forks source link

Command line visualisation macro #51

Closed jsmallcombe closed 6 years ago

jsmallcombe commented 6 years ago

Very small problem. I know I can run visualisation macros from the interactive session with /control/execute vis.mac

Is there an easy way to stop the program from exiting when running from the command line like: ./Griffinv10 vis.mac

This isn't important but it does save time when making small edits and checking if there is already a known method.

jsmallcombe commented 6 years ago

So apparently just running ./Griffinv10 Opens the runs the interactive session and runs vis.mac. I hadn't notice this before as usually my "vis.mac" was not actually called that.