Skip to content

Commit 4dabc23

Browse files
author
jgray-19
committed
Add check for solenoid in case of thin l=0 solenoid
1 parent a5eeb46 commit 4dabc23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/madl_etrck.mad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ end
297297
local function track_multipole (elm, m)
298298
get_mult(elm, m) ; adj_mult(m)
299299

300-
if m.nmul == 0 then return track_marker(elm, m) end
300+
if m.nmul == 0 and abs(elm.ksi) < minstr then return track_marker(elm, m) end
301301

302302
local angle, ksi, lrad in elm
303303
local knl, ksl in m

0 commit comments

Comments
 (0)