Change innerProduct to take sigma not tensorType.

This commit is contained in:
rowanc1
2014-07-03 10:08:39 -07:00
parent 9d048f2884
commit 8c65ddacae
2 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ class TestInnerProductsDerivs(unittest.TestCase):
mesh = Mesh.TensorMesh(h)
v = np.random.rand(mesh.nF)
sig = np.random.rand(1) if rep is 0 else np.random.rand(mesh.nC*rep)
Md = mesh.getFaceInnerProductDeriv(Utils.TensorType(mesh, sig), doFast=fast)
Md = mesh.getFaceInnerProductDeriv(sig, doFast=fast)
def fun(sig):
M = mesh.getFaceInnerProduct(sig)
return M*v, Md(v)
@@ -33,7 +33,7 @@ class TestInnerProductsDerivs(unittest.TestCase):
mesh = Mesh.TensorMesh(h)
v = np.random.rand(mesh.nE)
sig = np.random.rand(1) if rep is 0 else np.random.rand(mesh.nC*rep)
Md = mesh.getEdgeInnerProductDeriv(Utils.TensorType(mesh, sig), doFast=fast)
Md = mesh.getEdgeInnerProductDeriv(sig, doFast=fast)
def fun(sig):
M = mesh.getEdgeInnerProduct(sig)
return M*v, Md(v)