From 9d64f193f6150c1556376d894b37c7f84529fbfe Mon Sep 17 00:00:00 2001 From: Arman Tekinalp <53585636+armantekinalp@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:04:00 -0500 Subject: [PATCH] Update elastica/rod/cosserat_rod.py --- elastica/rod/cosserat_rod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastica/rod/cosserat_rod.py b/elastica/rod/cosserat_rod.py index ea79854a..b309dbf4 100644 --- a/elastica/rod/cosserat_rod.py +++ b/elastica/rod/cosserat_rod.py @@ -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