From 7cd6296fd46b23643fbca66f653e18828632f069 Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Tue, 9 Nov 2021 10:02:05 +1100 Subject: [PATCH] fix: fdi bug was weigthing grad by volume --- LoopStructural/interpolators/finite_difference_interpolator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LoopStructural/interpolators/finite_difference_interpolator.py b/LoopStructural/interpolators/finite_difference_interpolator.py index bfe515500..41fed84fc 100644 --- a/LoopStructural/interpolators/finite_difference_interpolator.py +++ b/LoopStructural/interpolators/finite_difference_interpolator.py @@ -180,7 +180,7 @@ def add_vaue_constraints(self, w=1.): self.add_constraints_to_least_squares(a.T, points[inside, 3], idc[inside, :], - w=w, + w=w*points[inside,4], name='value') def add_interface_constraints(self, w=1.0): # for now weight all value points the same """