Skip to content

Commit

Permalink
Merge pull request #846 from tpersson/dipole2drift
Browse files Browse the repository at this point in the history
If 0 strength dipole -> drift
  • Loading branch information
madcern committed Nov 6, 2019
2 parents 6e6eb98 + 4c7a20d commit 160c1bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/trrun.f90
Expand Up @@ -5005,6 +5005,10 @@ subroutine tttdipole(track, ktrack, code)
k0 = k0 + f_errors(0) / length ! dipole term
k1 = k1 + f_errors(2) / length ! quad term

if (k0.eq.zero .and. k1.eq.zero) then
call ttdrf(length,track,ktrack);
return
endif
!---- Apply entrance dipole edge effect
if (node_value('kill_ent_fringe ') .eq. zero) &
call ttdpdg_map(track, ktrack, e1, h1, hgap, fint, zero)
Expand Down

0 comments on commit 160c1bb

Please sign in to comment.