start of prim sec src with more derivs

This commit is contained in:
Lindsey Heagy
2016-05-30 20:30:00 -07:00
parent 54478ad05e
commit 0638fa308c
2 changed files with 18 additions and 0 deletions
+18
View File
@@ -630,3 +630,21 @@ class PrimSecSigma(BaseSrc):
return prob.MeSigmaDeriv(self.ePrimary(prob)) * v
class PrimSecSigmaProblem(BaseSrc):
def __init__(self, rxList, freq, primaryProblem, primarySurvey, map2meshs = None ,**kwargs):
self.primaryProblem = primaryProblem
self.primarySurvey = primarySurvey
self.map2meshs = map2meshs
BaseSrc.__init__(self, rxList, freq=freq, **kwargs)
def ePrimary(self, prob):
def ePrimaryDeriv(self, prob, v, adjoint=False):
View File