change innerproducts to massMatrices

This commit is contained in:
rowanc1
2014-07-12 11:43:45 -05:00
parent 1eae7a6807
commit bbe2a8563c
2 changed files with 31 additions and 7 deletions
+9
View File
@@ -50,5 +50,14 @@ class DCProblemTests(unittest.TestCase):
self.assertTrue(passed)
def test_massMatrices(self):
Gu = np.random.rand(self.mesh.nF)
def derChk(m):
self.p.curModel = m
return [self.p.Msig * Gu, self.p.dMdsig(Gu)]
passed = Tests.checkDerivative(derChk, self.m0, plotIt=False)
self.assertTrue(passed)
if __name__ == '__main__':
unittest.main()