Merge branch 'diffOperators' of https://bitbucket.org/rcockett/simpeg into diffOperators

This commit is contained in:
Rowan Cockett
2013-07-19 14:51:34 -07:00
+20
View File
@@ -239,3 +239,23 @@ class DiffOperators(object):
return locals()
_edgeAve = None
edgeAve = property(**edgeAve())
def getEdgeMassMatrix(h,sigma):
# mass matix for products of edge functions w'*M(sigma)*e
Av = getEdgeToCellAverge(h)
v = getVol(h)
sigma = mkvc(sigma)
return sdiag(Av.T*(v*sigma))
def getFaceMassMatrix(h,sigma):
# mass matix for products of edge functions w'*M(sigma)*e
Av = getFaceToCellAverge(h)
v = getVol(h)
sigma = mkvc(sigma)
return sdiag(Av.T*(v*sigma))