mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-13 12:40:08 +08:00
EdgeInnerProducts now working for LOM
Fixed DiffOps bug in CURL Fixed bug in OrderTest --> must remember to do cumSum, and not just supply dx to ndgrid test_massMatrices now tests uniformLOM
This commit is contained in:
@@ -92,8 +92,8 @@ class OrderTest(unittest.TestCase):
|
||||
|
||||
elif 'LOM' in self.meshType:
|
||||
if 'uniform' in self.meshType:
|
||||
xx = np.ones(nc)/nc
|
||||
X, Y, Z = utils.ndgrid(xx, xx, xx, vector=False)
|
||||
xx = np.cumsum(np.r_[0, np.ones(nc)/nc])
|
||||
X, Y, Z = utils.ndgrid([xx, xx, xx], vector=False)
|
||||
else:
|
||||
raise Exception('Unexpected meshType')
|
||||
self.M = LogicallyOrthogonalMesh([X, Y, Z])
|
||||
|
||||
@@ -32,6 +32,8 @@ from OrderTest import OrderTest
|
||||
class TestInnerProducts(OrderTest):
|
||||
"""Integrate an function over a unit cube domain using edgeInnerProducts and faceInnerProducts."""
|
||||
|
||||
meshType = 'uniformLOM'
|
||||
|
||||
def getError(self):
|
||||
|
||||
call = lambda fun, xyz: fun(xyz[:, 0], xyz[:, 1], xyz[:, 2])
|
||||
|
||||
Reference in New Issue
Block a user