mirror of
https://github.com/wassname/simpeg.git
synced 2026-09-12 12:51:28 +08:00
Merge branch 'dcip/ref' of https://github.com/simpeg/simpeg into dcip/ref
Conflicts: SimPEG/EM/Static/DC/ProblemDC.py Confused about ... this line self.mesh.getFaceInnerProduct(self.curModel.rho)(u)
This commit is contained in:
+7
-1
@@ -190,7 +190,13 @@ class BaseEMProblem(Problem.BaseProblem):
|
||||
"""
|
||||
Derivative of :code:`MfRhoI` with respect to the model.
|
||||
"""
|
||||
return self.mesh.getFaceInnerProductDeriv(self.curModel.rho, invMat=True)(u) * self.curModel.rhoDeriv
|
||||
|
||||
dMfRhoI_dI = -self.MfRhoI**2
|
||||
dMf_drho = self.mesh.getFaceInnerProduct(self.curModel.rho)(u)
|
||||
drho_dm = self.curModel.rhoDeriv
|
||||
return dMfRhoI_dI * ( dMf_drho * ( drho_dm))
|
||||
|
||||
# return self.mesh.getFaceInnerProductDeriv(self.curModel.rho, invMat=True)(u) * self.curModel.rhoDeriv
|
||||
|
||||
class BaseEMSurvey(Survey.BaseSurvey):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user