Skip to content

Commit 6049851

Browse files
authored
Update madl_etrck.mad
1 parent 07a622c commit 6049851

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/madl_etrck.mad

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,10 @@ local function track_multipole (elm, m)
249249
local angle, ksi, lrad, knl, ksl in elm
250250
local edir in m
251251

252-
m.el = lrad
252+
m.el = lrad*tdir
253253

254254
local kick = strex_kick
255-
-- Check if knl[1]^2 + ksl[1]^2 > 0
256-
if (knl[1] and abs(knl[1]) >= minstr) or (ksl[1] and abs(ksl[1]) >= minstr) then
255+
if abs(knl[1]) + abs(ksl[1]) >= minang then
257256
kick = strex_kickh
258257
elseif abs(ksi) >= minstr then
259258
m.ksi = ksi

0 commit comments

Comments
 (0)