Skip to content

Commit

Permalink
added round() to linkingnumber
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWiedman committed Nov 2, 2023
1 parent ebf55f5 commit d76c397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simsopt/geo/curveobjectives.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def J(self):
integrals = sopp.linkNumber(R1, R2, dR1, dR2) * dS * dT
linkNum[i-1][j-1] = 1/(4*np.pi) * (integrals)
linkNumSum = sum(sum(abs(linkNum)))
return linkNumSum
return round(linkNumSum)

@derivative_dec
def dJ(self):
Expand Down

0 comments on commit d76c397

Please sign in to comment.