mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-15 12:54:52 +08:00
FaceInnerProducts for TreeMesh
This commit is contained in:
@@ -489,13 +489,15 @@ class SimpleOctreeOperatorTests(unittest.TestCase):
|
||||
h1 = np.random.rand(5)
|
||||
h2 = np.random.rand(7)
|
||||
h3 = np.random.rand(3)
|
||||
self.tM = TensorMesh([h1,h2,1])
|
||||
self.oM = TreeMesh([h1,h2,1])
|
||||
self.tM = TensorMesh([h1,h2,h3])
|
||||
self.oM = TreeMesh([h1,h2,h3])
|
||||
|
||||
def test_faceDiv(self):
|
||||
print (self.tM.faceDiv - self.oM.faceDiv)
|
||||
self.assertTrue((self.tM.faceDiv - self.oM.faceDiv).toarray().sum() == 0)
|
||||
|
||||
def test_InnerProducts(self):
|
||||
self.assertTrue((self.tM.getFaceInnerProduct() - self.oM.getFaceInnerProduct()).toarray().sum() == 0)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user