Closed Orbit Finder should not call exit()
Summary
Closed orbit finder is exiting without giving the timer information and calling the proper exit methods.
Steps to reproduce
Any input file with OPTION, CLOTUNEONLY = TRUE
, e.g.
https://gitlab.psi.ch/OPAL/src/wikis/Cyclotron/cyclotronTune-2-1.in
What is the current bug behavior?
The program exits after the last energy
What is the expected correct behavior?
Timing information and a proper exit call
Relevant logs and/or screenshots
last few lines:
OPAL> * ----------------------------
OPAL> * Closed orbit info (Gordon units):
OPAL> *
OPAL> * kinetic energy: 590 [MeV]
OPAL> * average radius: 4.43029 [m]
OPAL> * initial radius: 4.40192 [m]
OPAL> * initial momentum: 0.210161 [Beta Gamma]
OPAL> * frequency error: 0.000898961
OPAL> * horizontal tune: 1.33751
OPAL> * vertical tune: 1.21163
OPAL> * ----------------------------
OPAL>
Possible fixes
Relevant code block: https://gitlab.psi.ch/OPAL/src/blob/master/src/Distribution/Distribution.cpp#L1342