From 31e6a04d36a03fd104f8e6bae29513c6800fa171 Mon Sep 17 00:00:00 2001 From: rowanc1 Date: Mon, 3 Feb 2014 11:55:07 -0800 Subject: [PATCH] EdgeCurl Assertion. Only programmed for 3D currently... --- SimPEG/Mesh/DiffOperators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/SimPEG/Mesh/DiffOperators.py b/SimPEG/Mesh/DiffOperators.py index 978f964b..492d628e 100644 --- a/SimPEG/Mesh/DiffOperators.py +++ b/SimPEG/Mesh/DiffOperators.py @@ -422,6 +422,7 @@ class DiffOperators(object): def fget(self): if(self._edgeCurl is None): + assert self.dim > 2, "Edge Curl only programed for 3D." # The number of cell centers in each direction n1 = self.nCx n2 = self.nCy