Add distance weighting to example

TO DO: Create example with and without distance weights
This commit is contained in:
D Fournier
2016-04-03 17:26:04 -07:00
parent 8f73b2e7be
commit 2ee158e5d7
+1 -1
View File
@@ -48,7 +48,7 @@ def run(N=200, plotIt=True):
#M = prob.mesh
# Distance weighting
wr = np.sum(prob.G**2.,axis=0)**0.5
wr = ( wr/np.max(wr) )**0
wr = ( wr/np.max(wr) )
reg = Regularization.Simple(mesh)
reg.wght = wr