Skip to content

Commit

Permalink
Fix friction assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jtgrasb committed Jan 2, 2025
1 parent 71c826a commit d927aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wecopttool/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2251,7 +2251,7 @@ def add_linear_friction(
'with same value.')
else:
data = atleast_2d(friction)
hydro_data['friction'] = (dims, friction)
hydro_data['friction'] = (dims, data)
elif friction is None:
ndof = len(hydro_data["influenced_dof"])
hydro_data['friction'] = (dims, np.zeros([ndof, ndof]))
Expand Down

0 comments on commit d927aa9

Please sign in to comment.