Skip to content

Commit

Permalink
:hot: bugfix: ExternalContact rigid body and rod
Browse files Browse the repository at this point in the history
This commit fixes a bug in rigid body and rod  ExternalContact class.
Rigid body radius and length are not sliced properly so numba cannot
 understand the shape when it is compiling
`_prune_using_aabbs_rod_rigid_body` function.
  • Loading branch information
armantekinalp committed Mar 15, 2022
1 parent c51d280 commit fee87b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions elastica/joint.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,8 @@ def apply_forces(self, rod_one, index_one, rod_two, index_two):
rod_one.lengths,
cylinder_two.position_collection,
cylinder_two.director_collection,
cylinder_two.radius,
cylinder_two.length,
cylinder_two.radius[0],
cylinder_two.length[0],
):
return

Expand Down
2 changes: 1 addition & 1 deletion elastica/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.2.2"
VERSION = "0.2.2.post2"

0 comments on commit fee87b9

Please sign in to comment.