mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-29 11:27:23 +08:00
working on IP
fix bug in RhoDeriv!!
This commit is contained in:
+1
-2
@@ -191,8 +191,7 @@ class BaseEMProblem(Problem.BaseProblem):
|
||||
|
||||
dMfRhoI_dI = -self.MfRhoI**2
|
||||
dMf_drho = self.mesh.getFaceInnerProductDeriv(self.curModel.rho)(u)
|
||||
drho_dm = self.curModel.rhoDeriv
|
||||
return dMfRhoI_dI * ( dMf_drho * ( drho_dm))
|
||||
return dMfRhoI_dI * ( dMf_drho * (-Utils.sdiag(self.curModel.rho**2) * self.curModel.sigmaDeriv) )
|
||||
|
||||
# return self.mesh.getFaceInnerProductDeriv(self.curModel.rho, invMat=True)(u) * self.curModel.rhoDeriv
|
||||
|
||||
|
||||
Reference in New Issue
Block a user