Skip to content

Commit

Permalink
fix: removing _ from pli constraint names
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Nov 9, 2021
1 parent 52c277d commit 08473c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LoopStructural/interpolators/piecewiselinear_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ def add_gradient_constraints(self, w=1.0):
self.add_constraints_to_least_squares(A[outside, :],
B[outside], idc[outside, :],
w=w,
name = 'gradient_strike')
name = 'gradient strike')
A = np.einsum('ji,ijk->ik', dip_vector, element_gradients)
# A *= vol[:, None]
self.add_constraints_to_least_squares(A[outside, :],
B[outside], idc[outside, :],
w=w,
name='gradient_dip')
name='gradient dip')

def add_norm_constraints(self, w=1.0):
"""
Expand Down Expand Up @@ -301,11 +301,11 @@ def add_value_constraints(self, w=1.0): # for now weight all value points the s
gi[self.region] = np.arange(0, self.nx)
idc = gi[idc]
outside = ~np.any(idc == -1, axis=1)
w*=points[:,4]
w*=points[inside,4]
self.add_constraints_to_least_squares(A[outside,:],
points[inside,:][outside, 3]*vol[:],
idc[outside, :],
w=points[outside,4],name='value')
w=w,name='value')

def add_interface_constraints(self, w=1.0): # for now weight all value points the same
"""
Expand Down

0 comments on commit 08473c3

Please sign in to comment.