Skip to content

Commit 8246124

Browse files
authored
Merge pull request #288 from jgray-19/test_ptc
Fix to get SBENDfhs test to pass
2 parents ed526b9 + 96b59de commit 8246124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests/test-ptc-maps/test-ptc-maps.mad

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,10 @@ local function testSBENDfh()
500500
run_test(cfg)
501501
end
502502

503-
local function testSBENDfhs() -- Will fail as k1 and k1s need to be integrated through the curved path.
503+
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)
504504
local cfg = ref_cfg "sbendfhs" {
505505
elm = [[
506-
SBEND, at=0.75, l=1.5, angle=${k0}*2*pi/1e2, k1=${k1}, k1s=${k1s},
506+
SBEND, at=0.75, l=1.5, angle=${k0}*2*pi/1e2, k1=${k1}, k1s=${k1s}, knl={0,0,0,0,0}
507507
e1=${e1}*2*pi/2.2e2, e2=${e2}*2*pi/2.5e2, hgap=${hgap}, fint=${fint},
508508
kill_ent_fringe=${no_fringe}, kill_exi_fringe=${no_fringe};
509509
]],

0 commit comments

Comments
 (0)