working on IP

fix bug in RhoDeriv!!
This commit is contained in:
seogi_macbook
2016-05-02 10:03:01 -07:00
parent d350dc258d
commit bd63e67161
2 changed files with 122 additions and 161 deletions
+1 -2
View File
@@ -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