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:
seogi_macbook
2016-04-23 00:37:06 -07:00
9 changed files with 201 additions and 21 deletions
+7 -1
View File
@@ -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):