Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twiss fails for zero length solenoid #857

Closed
HelmutCERN opened this issue Nov 15, 2019 · 1 comment · Fixed by #858
Closed

twiss fails for zero length solenoid #857

HelmutCERN opened this issue Nov 15, 2019 · 1 comment · Fixed by #858

Comments

@HelmutCERN
Copy link
Contributor

! twiss fails with 5.05.02, final orbit NaN
! seen for l=0 and beam with radiate
! worked with previous madx 5.04 versions

TestSeq: sequence, l = 1;
mbas2.1r1: solenoid, l=0, at = 0.5;
endsequence;
beam,radiate;
use, sequence=TestSeq;
twiss,betx=1,bety=1,sequence=TestSeq,file="TestSeq_twiss.tfs";

@tpersson
Copy link
Contributor

A check is added in TWISS and TRACK to avoid this and a warning is thrown if it happens and the radiation is ignored. #858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants