Skip to content

Commit

Permalink
fix: change argument for p1 interpolator
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Oct 9, 2024
1 parent 056317a commit 57e8cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LoopStructural/interpolators/_p1interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def add_gradient_orthogonal_constraints(
points: np.ndarray,
vectors: np.ndarray,
w: float = 1.0,
B: float = 0,
b: float = 0,
name='undefined gradient orthogonal constraint',
):
"""
Expand Down Expand Up @@ -215,7 +215,7 @@ def add_gradient_orthogonal_constraints(
norm = np.linalg.norm(vectors, axis=1)
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
B = np.zeros(points[inside, :].shape[0]) + b
self.add_constraints_to_least_squares(A, B, elements, w=wt, name="gradient orthogonal")
if np.sum(inside) <= 0:
logger.warning(
Expand Down

0 comments on commit 57e8cf7

Please sign in to comment.