mirror of
https://github.com/wassname/simpeg.git
synced 2026-09-12 12:51:28 +08:00
lower tolerance on testing random meshes for 1D interpolation
This commit is contained in:
@@ -4,7 +4,7 @@ from TestUtils import OrderTest
|
|||||||
from SimPEG.Utils import mkvc
|
from SimPEG.Utils import mkvc
|
||||||
|
|
||||||
MESHTYPES = ['uniformTensorMesh', 'randomTensorMesh']
|
MESHTYPES = ['uniformTensorMesh', 'randomTensorMesh']
|
||||||
TOLERANCES = [0.9, 0.55]
|
TOLERANCES = [0.9, 0.5]
|
||||||
call1 = lambda fun, xyz: fun(xyz)
|
call1 = lambda fun, xyz: fun(xyz)
|
||||||
call2 = lambda fun, xyz: fun(xyz[:, 0], xyz[:, 1])
|
call2 = lambda fun, xyz: fun(xyz[:, 0], xyz[:, 1])
|
||||||
call3 = lambda fun, xyz: fun(xyz[:, 0], xyz[:, 1], xyz[:, 2])
|
call3 = lambda fun, xyz: fun(xyz[:, 0], xyz[:, 1], xyz[:, 2])
|
||||||
@@ -23,7 +23,7 @@ class TestInterpolation1D(OrderTest):
|
|||||||
meshTypes = MESHTYPES
|
meshTypes = MESHTYPES
|
||||||
tolerance = TOLERANCES
|
tolerance = TOLERANCES
|
||||||
meshDimension = 1
|
meshDimension = 1
|
||||||
meshSizes = [8, 16, 32]
|
meshSizes = [8, 16, 32, 64, 128]
|
||||||
|
|
||||||
def getError(self):
|
def getError(self):
|
||||||
funX = lambda x: np.cos(2*np.pi*x)
|
funX = lambda x: np.cos(2*np.pi*x)
|
||||||
|
|||||||
Reference in New Issue
Block a user