mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-29 08:32:04 +08:00
Add distance weighting to example
TO DO: Create example with and without distance weights
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user