From 5c83095781f67e1c315bf2a7889ec09004964526 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Fri, 26 Jul 2013 14:30:04 -0700 Subject: [PATCH] Minor changes and comments. --- SimPEG/getEdgeInnerProducts.py | 2 +- SimPEG/tests/test_massMatrices.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/SimPEG/getEdgeInnerProducts.py b/SimPEG/getEdgeInnerProducts.py index 7e123ab6..68423a3f 100644 --- a/SimPEG/getEdgeInnerProducts.py +++ b/SimPEG/getEdgeInnerProducts.py @@ -58,7 +58,7 @@ def getEdgeInnerProduct(mesh, sigma): P111 = Pxxx([[0, 1, 1], [1, 0, 1], [1, 1, 0]]) if sigma.size == mesh.nC: # Isotropic! - sigma = mkvc(sigma) + sigma = mkvc(sigma) # ensure it is a vector. Sigma = sdiag(np.r_[sigma, sigma, sigma]) elif sigma.shape[1] == 3: # Diagonal tensor Sigma = sdiag(np.r_[sigma[:, 0], sigma[:, 1], sigma[:, 2]]) diff --git a/SimPEG/tests/test_massMatrices.py b/SimPEG/tests/test_massMatrices.py index 87310a47..0aae0615 100644 --- a/SimPEG/tests/test_massMatrices.py +++ b/SimPEG/tests/test_massMatrices.py @@ -1,18 +1,16 @@ import numpy as np import unittest +from OrderTest import OrderTest import sys sys.path.append('../') -from OrderTest import OrderTest from getEdgeInnerProducts import * class TestEdgeInnerProduct(OrderTest): - """Integrate a function over a unit cube domain.""" + """Integrate an edge function over a unit cube domain using edgeInnerProducts.""" name = "Edge Inner Product" - meshSizes = [4, 8, 16, 32] - def getError(self): call = lambda fun, xyz: fun(xyz[:, 0], xyz[:, 1], xyz[:, 2])