Trimcoil implementation bug
Summary
In #276 (closed) and !53 (merged) a trim coil range in the azimuthal direction was introduced. However, this was not properly tested and it contained a bug, that was discovered by @zhang_h.
What is the current bug behavior?
The trim coils do not work anymore.
What is the expected correct behavior?
Trim coils working as normal.
Possible fixes
The bug was introduced in 77c975dc, specifically in line https://gitlab.psi.ch/OPAL/src/-/blob/160558d02705876d15775fe7527227a142bc2088/src/Classic/AbsBeamline/Cyclotron.cpp#L101 the order of the arguments is wrong, see also https://gitlab.psi.ch/OPAL/src/-/blob/0601ed262da6cd29690abff38053c900f9bafacc/src/Classic/TrimCoils/TrimCoil.cpp#L43
Edited by snuverink_j