Closed lfarv closed 1 year ago
This fixes a problem reported in #594. A check of entrance and exit angles of adjacent bending magnets is added:
abs(ExitAngle(bend1)+EntranceAngle(bend2)) < 1.e-6
This is always true for realistic magnets, otherwise the poles would overlap. However AT also allows non-realistic magnets, where "reducing" gave wrong results.
I'd still like to have @simoneliuzzo's advice!
@simoneliuzzo : does this answer your question ?
This fixes a problem reported in #594. A check of entrance and exit angles of adjacent bending magnets is added:
This is always true for realistic magnets, otherwise the poles would overlap. However AT also allows non-realistic magnets, where "reducing" gave wrong results.