Skip to content

Commit

Permalink
Fix t in CFbend
Browse files Browse the repository at this point in the history
This fixes the longitudinal component in `CFbend` in
one of the cases.
  • Loading branch information
ax3l committed Feb 20, 2025
1 parent 5816acc commit ff8033e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/CFbend.H
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace impactx::elements
x = cosx*xout + sinx/omegax*px - (1.0_prt - cosx)/(gx*bet*m_rc)*pt;
pxout = -omegax*sinx*xout + cosx*px - sinx/(omegax*bet*m_rc)*pt;

y = sinx/(omegax*bet*m_rc)*xout + (1.0_prt - cosx)/(gx*bet*m_rc)*px
t = sinx/(omegax*bet*m_rc)*xout + (1.0_prt - cosx)/(gx*bet*m_rc)*px
+ tout + r56*pt;
ptout = pt;
} else {
Expand Down

0 comments on commit ff8033e

Please sign in to comment.