Skip to content

Commit

Permalink
fix: pli grad constraint weights were divided by 3
Browse files Browse the repository at this point in the history
removed this keep weighting the same
  • Loading branch information
Lachlan Grose committed Oct 7, 2021
1 parent d6b8280 commit cedcffb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def add_gradient_constraints(self, w=1.0):
gi = np.zeros(self.support.n_nodes).astype(int)
gi[:] = -1
gi[self.region] = np.arange(0, self.nx).astype(int)
w /= 3
# w /= 3
idc = gi[tetras]
B = np.zeros(idc.shape[0])
outside = ~np.any(idc == -1, axis=1)
Expand Down

0 comments on commit cedcffb

Please sign in to comment.