diff options
author | 2019-10-01 15:22:16 -0700 | |
---|---|---|
committer | 2019-10-01 15:22:16 -0700 | |
commit | d1b89179d89adc26037816afcf28ca2a61816a81 (patch) | |
tree | 9eb26d046b313c2bb88615ec7e4eda968387c5fa /Python/pywarpx/fields.py | |
parent | 81e4a0f3407af2aad99cacaaba483de80189d198 (diff) | |
download | WarpX-d1b89179d89adc26037816afcf28ca2a61816a81.tar.gz WarpX-d1b89179d89adc26037816afcf28ca2a61816a81.tar.zst WarpX-d1b89179d89adc26037816afcf28ca2a61816a81.zip |
Additional fix for single precision in Python interface
Diffstat (limited to 'Python/pywarpx/fields.py')
-rw-r--r-- | Python/pywarpx/fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pywarpx/fields.py b/Python/pywarpx/fields.py index 8b7283a46..fa247db07 100644 --- a/Python/pywarpx/fields.py +++ b/Python/pywarpx/fields.py @@ -127,7 +127,7 @@ class _MultiFABWrapper(object): sss = (max(0, ixstop - ixstart), max(0, iystop - iystart), max(0, izstop - izstart)) - resultglobal = np.zeros(sss) + resultglobal = np.zeros(sss, dtype=_libwarpx._numpy_real_dtype) datalist = [] for i in range(len(fields)): @@ -222,7 +222,7 @@ class _MultiFABWrapper(object): max(0, izstop - izstart)) if ncomps > 1 and ic is None: sss = tuple(list(sss) + [ncomps]) - resultglobal = np.zeros(sss) + resultglobal = np.zeros(sss, dtype=_libwarpx._numpy_real_dtype) datalist = [] for i in range(len(fields)): |