mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-08 13:04:20 +08:00
add Ainv.clean() to fdem fields, jvec, jtvec
This commit is contained in:
@@ -50,7 +50,7 @@ class BaseFDEMProblem(BaseEMProblem):
|
||||
Srcs = self.survey.getSrcByFreq(freq)
|
||||
ftype = self._fieldType + 'Solution'
|
||||
F[Srcs, ftype] = sol
|
||||
|
||||
Ainv.clean()
|
||||
return F
|
||||
|
||||
def Jvec(self, m, v, f=None):
|
||||
@@ -89,6 +89,7 @@ class BaseFDEMProblem(BaseEMProblem):
|
||||
|
||||
Jv[src, rx] = P(Df_Dm)
|
||||
|
||||
Ainv.clean()
|
||||
return Utils.mkvc(Jv)
|
||||
|
||||
def Jtvec(self, m, v, f=None):
|
||||
@@ -139,7 +140,8 @@ class BaseFDEMProblem(BaseEMProblem):
|
||||
Jtv += - np.array(du_dmT,dtype=complex).real
|
||||
else:
|
||||
raise Exception('Must be real or imag')
|
||||
|
||||
|
||||
ATinv.clean()
|
||||
return Jtv
|
||||
|
||||
def getSourceTerm(self, freq):
|
||||
|
||||
Reference in New Issue
Block a user