Skip to content

Commit

Permalink
fix: pass constraint name to add to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Oct 9, 2024
1 parent 57e8cf7 commit 84f4499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LoopStructural/interpolators/_p1interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def add_gradient_orthogonal_constraints(
vectors[norm > 0, :] /= norm[norm > 0, None]
A = np.einsum("ij,ijk->ik", vectors[inside, :3], grad[inside, :, :])
B = np.zeros(points[inside, :].shape[0]) + b
self.add_constraints_to_least_squares(A, B, elements, w=wt, name="gradient orthogonal")
self.add_constraints_to_least_squares(A, B, elements, w=wt, name=name)
if np.sum(inside) <= 0:
logger.warning(
f"{np.sum(~inside)} \
Expand Down

0 comments on commit 84f4499

Please sign in to comment.