Skip to content

Commit

Permalink
Update elastica/rod/cosserat_rod.py
Browse files Browse the repository at this point in the history
  • Loading branch information
armantekinalp authored Jun 25, 2024
1 parent 9b267af commit 9d64f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastica/rod/cosserat_rod.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __init__(
internal_couple: NDArray[np.floating],
ring_rod_flag: bool,
) -> None:
self.n_nodes = n_elements + 1 if ring_rod_flag else n_elements
self.n_nodes = n_elements + 1 if not ring_rod_flag else n_elements
self.n_elems = n_elements
self.position_collection = position
self.velocity_collection = velocity
Expand Down

0 comments on commit 9d64f19

Please sign in to comment.