#69 Removed most solvers, replaced by wrappers.

This commit is contained in:
rowanc1
2014-05-16 18:33:57 -07:00
parent 1f0e37d773
commit f3170a8a7f
11 changed files with 92 additions and 670 deletions
+10 -9
View File
@@ -23,7 +23,7 @@ class LinearProblem(Problem.BaseProblem):
return self.G.T.dot(v)
def run(N):
def run(N, plotIt=True):
mesh = Mesh.TensorMesh([N])
nk = 20
@@ -59,13 +59,14 @@ def run(N):
mrec = inv.run(m0)
import matplotlib.pyplot as plt
plt.figure(1)
for i in range(prob.G.shape[0]):
plt.plot(prob.G[i,:])
if plotIt:
import matplotlib.pyplot as plt
plt.figure(1)
for i in range(prob.G.shape[0]):
plt.plot(prob.G[i,:])
plt.figure(2)
plt.plot(M.vectorCCx, survey.mtrue, 'b-')
plt.plot(M.vectorCCx, mrec, 'r-')
plt.figure(2)
plt.plot(M.vectorCCx, survey.mtrue, 'b-')
plt.plot(M.vectorCCx, mrec, 'r-')
return prob, survey, mesh
return prob, survey, mesh, mrec