mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-03 08:02:12 +08:00
Bug Fixes. Test_DCproblem is still not working.
This commit is contained in:
+2
-2
@@ -128,7 +128,7 @@ class Solver(object):
|
||||
x[i] = (b[i] - np.dot(ith_row[1:], x_vals[1:])) / ith_row[0]
|
||||
return x
|
||||
|
||||
def solveForward(self, backend='python'):
|
||||
def solveForward(self, b, backend='python'):
|
||||
"""
|
||||
Use solve instead of this interface.
|
||||
|
||||
@@ -152,7 +152,7 @@ class Solver(object):
|
||||
x[i] = (b[i] - np.dot(ith_row[:-1], x_vals[:-1])) / ith_row[-1]
|
||||
return x
|
||||
|
||||
def solveDiagonal(self, backend='python'):
|
||||
def solveDiagonal(self, b, backend='python'):
|
||||
"""
|
||||
Use solve instead of this interface.
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import numpy as np
|
||||
from SimPEG.utils import mkvc, sdiag
|
||||
import scipy.sparse as sp
|
||||
norm = np.linalg.norm
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from Problem import *
|
||||
from DCProblem import DCProblem
|
||||
import DCProblem
|
||||
from LinearProblem import LinearProblem
|
||||
import ModelTransforms
|
||||
|
||||
Reference in New Issue
Block a user