Closed ChristopherMayes closed 2 days ago
Last correct version:
conda install bmad=20241019.0
...
Tao: show version
Date: 2024/10/14 20:57:28
Tao: set ele q1 x_offset = 0.001
Tao: sho value ele::q1[orbit.x]
4.9958347219740927E-06
The first appearance of the bug:
conda install bmad=20241023.0
Tao: show version
Date: 2024/10/22 15:23:19
Tao: set ele q1 x_offset = 0.001
Tao: sho value ele::q1[orbit.x]
0.0000000000000000E+00
Fixed. This was a bookkeeping bug. Ironically enough, the bug was created in my quest to make Bmad faster. And I have added a regression test for this.
Describe the bug Setting the offset of a superimposed quad (with nonzero k1) in Tao does not change the orbit.
To Reproduce
lat.bmad
:Run Tao.
Notice, however, that the plot shows the orbit deviation.
Expected behavior The value is expected to change to:
This can be seen by putting
q1[x_offset] = 0.001
intolat.bmad
Compiler and Operating system macOS with gcc13