Skip to content

Commit

Permalink
Fix for consistency with recent update to booz_xform.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejpaul committed Jul 26, 2024
1 parent e38938a commit c6b0219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simsopt/field/boozermagneticfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def init_splines(self):

s_full = np.linspace(0, 1, self.bx.ns_b+1)

psip = self.bx.phip/(2*np.pi)
psip = self.bx.chi/(2*np.pi)
iota[1:-1] = self.bx.iota
sign_psip = np.sign(((psip[1]-psip[0])/self.psi0)/np.sign(iota[1]))
psip *= sign_psip
Expand Down

0 comments on commit c6b0219

Please sign in to comment.