Skip to content

Commit

Permalink
Print some debug info the CurveLength.J()
Browse files Browse the repository at this point in the history
  • Loading branch information
landreman committed Jan 20, 2025
1 parent 4ce30ea commit 116718f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/simsopt/geo/curveobjectives.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def J(self):
"""
This returns the value of the quantity.
"""
print("CurveLength.J(): incremental_arclength = ", self.curve.incremental_arclength(), flush=True)
return curve_length_pure(self.curve.incremental_arclength())

@derivative_dec
Expand Down

0 comments on commit 116718f

Please sign in to comment.