mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-29 07:58:48 +08:00
fixed test_Fields
This commit is contained in:
@@ -147,7 +147,7 @@ class FieldsTest_Alias(unittest.TestCase):
|
||||
|
||||
def test_aliasFunction(self):
|
||||
def alias(e, ind):
|
||||
self.assertTrue(ind is self.Src0)
|
||||
self.assertTrue(ind[0] is self.Src0)
|
||||
return self.F.mesh.edgeCurl * e
|
||||
F = Problem.Fields(self.F.mesh, self.F.survey, knownFields={'e':'E'}, aliasFields={'b':['e','F',alias]})
|
||||
e = np.random.rand(F.mesh.nE,1)
|
||||
|
||||
Reference in New Issue
Block a user