From 187ba97112f97c9267373536ef011f1ef0e345de Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Fri, 1 Nov 2013 15:19:07 -0700 Subject: [PATCH] Bug fix in regularization. --- SimPEG/mesh/DiffOperators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimPEG/mesh/DiffOperators.py b/SimPEG/mesh/DiffOperators.py index 380e0d19..598b392a 100644 --- a/SimPEG/mesh/DiffOperators.py +++ b/SimPEG/mesh/DiffOperators.py @@ -192,7 +192,7 @@ class DiffOperators(object): BC = ['neumann', 'neumann'] n = self.n if(self.dim == 2): - G2 = sp.kron(speye(n[1]), ddxCellGrad(n[0], BC)) + G2 = sp.kron(ddxCellGrad(n[1], BC), speye(n[0])) elif(self.dim == 3): G2 = kron3(speye(n[2]), ddxCellGrad(n[1], BC), speye(n[0])) # Compute areas of cell faces & volumes