@@ -100,41 +100,41 @@ def _setup_interpolator(self, **kwargs):
100100 if 'operators' not in kwargs :
101101
102102 operator = Operator .Dxy_mask
103- weight = self .interpolation_weights ['dxy' ] / \
104- 1 # (4*self.support.step_vector[0]*self.support.step_vector[1])
103+ weight = self .vol * self . interpolation_weights ['dxy' ] / \
104+ (4 * self .support .step_vector [0 ]* self .support .step_vector [1 ])
105105 self .assemble_inner (operator , weight )
106106 operator = Operator .Dyz_mask
107- weight = self .interpolation_weights ['dyz' ] / \
108- 1 # (4*self.support.step_vector[1]*self.support.step_vector[2])
107+ weight = self .vol * self . interpolation_weights ['dyz' ] / \
108+ (4 * self .support .step_vector [1 ]* self .support .step_vector [2 ])
109109 self .assemble_inner (operator , weight )
110110 operator = Operator .Dxz_mask
111- weight = self .interpolation_weights ['dxz' ] / \
112- 1 # (4*self.support.step_vector[0]*self.support.step_vector[2])
111+ weight = self .vol * self . interpolation_weights ['dxz' ] / \
112+ (4 * self .support .step_vector [0 ]* self .support .step_vector [2 ])
113113 self .assemble_inner (operator , weight )
114114 operator = Operator .Dxx_mask
115- weight = self .interpolation_weights ['dxx' ] \
116- / 1 # self.support.step_vector[0]**2
115+ weight = self .vol * self . interpolation_weights ['dxx' ] / \
116+ self .support .step_vector [0 ]** 2
117117 self .assemble_inner (operator ,
118118 weight )
119119 operator = Operator .Dyy_mask
120- weight = self .interpolation_weights ['dyy' ] / \
121- 1 # self.support.step_vector[1]**2
120+ weight = self .vol * self . interpolation_weights ['dyy' ] / \
121+ self .support .step_vector [1 ]** 2
122122 self .assemble_inner (operator ,weight )
123123 operator = Operator .Dzz_mask
124- weight = self .interpolation_weights ['dzz' ] / \
125- 1 # self.support.step_vector[2]**2
124+ weight = self .vol * self . interpolation_weights ['dzz' ] / \
125+ self .support .step_vector [2 ]** 2
126126 self .assemble_inner (operator ,weight )
127127 self .add_norm_constraints (
128- self .interpolation_weights ['npw' ])
128+ self .vol * self . interpolation_weights ['npw' ])
129129 self .add_gradient_constraints (
130- self .interpolation_weights ['gpw' ])
130+ self .vol * self . interpolation_weights ['gpw' ])
131131 self .add_vaue_constraints (
132- self .interpolation_weights ['cpw' ])
132+ self .vol * self . interpolation_weights ['cpw' ])
133133 self .add_tangent_constraints (
134- self .interpolation_weights ['tpw' ]
134+ self .vol * self . interpolation_weights ['tpw' ]
135135 )
136136 self .add_interface_constraints (
137- self .interpolation_weights ['ipw' ]
137+ self .vol * self . interpolation_weights ['ipw' ]
138138 )
139139
140140 def copy (self ):
0 commit comments