From e85da0d15ba25e98ee4e0a64ec93d9346d428e5d Mon Sep 17 00:00:00 2001 From: Lindsey Heagy Date: Sun, 18 Oct 2015 21:25:31 -0700 Subject: [PATCH] jPrimary should be initiated as complex in the fields object --- simpegEM/FDEM/FieldsFDEM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpegEM/FDEM/FieldsFDEM.py b/simpegEM/FDEM/FieldsFDEM.py index 21083264..ce655e2e 100644 --- a/simpegEM/FDEM/FieldsFDEM.py +++ b/simpegEM/FDEM/FieldsFDEM.py @@ -335,7 +335,7 @@ class FieldsFDEM_h(FieldsFDEM): return None def _jPrimary(self, hSolution, srcList): - jPrimary = np.zeros([self._edgeCurl.shape[0], hSolution.shape[1]]) + jPrimary = np.zeros([self._edgeCurl.shape[0], hSolution.shape[1]], dtype = complex) for i, src in enumerate(srcList): jp = src.jPrimary(self.prob) if jp is not None: