From a7befd678325f28b5682af5ae2edfc7b80491089 Mon Sep 17 00:00:00 2001 From: Lindsey Heagy Date: Thu, 21 Jul 2016 12:38:21 -0700 Subject: [PATCH] fix typo in cell grad --- 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 54db6ad5..f7a13580 100644 --- a/SimPEG/Mesh/DiffOperators.py +++ b/SimPEG/Mesh/DiffOperators.py @@ -323,7 +323,7 @@ class DiffOperators(object): """ The cell centered Gradient, takes you to cell faces. """ - if(self._cellGrad is None): + if getattr(self, '_cellGrad', None) is None: G = self._cellGradStencil() S = self.area # Compute areas of cell faces & volumes V = self.aveCC2F*self.vol # Average volume between adjacent cells