Skip to content

Commit

Permalink
Fixed elastica tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alucantonio committed Mar 5, 2024
1 parent 1869a87 commit f614076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_elastica.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def energy(theta: npt.NDArray, B, theta_0, F) -> Array:

residual = C.sub(C.codifferential(C.star(moment)), load)

return residual.coeffs[1:]
return residual.coeffs.flatten()[1:]

energy_grad = energy

Expand Down

0 comments on commit f614076

Please sign in to comment.