Skip to content

Fix to get SBENDfhs test to pass #288

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

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/tests/test-ptc-maps/test-ptc-maps.mad
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,10 @@ local function testSBENDfh()
run_test(cfg)
end

local function testSBENDfhs() -- Will fail as k1 and k1s need to be integrated through the curved path.
local function testSBENDfhs() -- knl required so MAD-NG and PTC use the same coefficients (MAD-NG has access to a few more coefficients that PTC ignores)
local cfg = ref_cfg "sbendfhs" {
elm = [[
SBEND, at=0.75, l=1.5, angle=${k0}*2*pi/1e2, k1=${k1}, k1s=${k1s},
SBEND, at=0.75, l=1.5, angle=${k0}*2*pi/1e2, k1=${k1}, k1s=${k1s}, knl={0,0,0,0,0}
e1=${e1}*2*pi/2.2e2, e2=${e2}*2*pi/2.5e2, hgap=${hgap}, fint=${fint},
kill_ent_fringe=${no_fringe}, kill_exi_fringe=${no_fringe};
]],
Expand Down