aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pywarpx/fields.py')
-rw-r--r--Python/pywarpx/fields.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/pywarpx/fields.py b/Python/pywarpx/fields.py
index cb63a8af4..6f4ec1c43 100644
--- a/Python/pywarpx/fields.py
+++ b/Python/pywarpx/fields.py
@@ -42,7 +42,7 @@ class _MultiFABWrapper(object):
self.level = level
self.include_ghosts = include_ghosts
- self.dim = _libwarpx.dim
+ self.dim = _libwarpx.libwarpx.dim
# overlaps is one along the axes where the grid boundaries overlap the neighboring grid,
# which is the case with node centering.
@@ -85,13 +85,13 @@ class _MultiFABWrapper(object):
"""
try:
- if _libwarpx.geometry_dim == '3d':
+ if _libwarpx.libwarpx.geometry_dim == '3d':
idir = ['x', 'y', 'z'].index(direction)
celldir = idir
- elif _libwarpx.geometry_dim == '2d':
+ elif _libwarpx.libwarpx.geometry_dim == '2d':
idir = ['x', 'z'].index(direction)
celldir = 2*idir
- elif _libwarpx.geometry_dim == 'rz':
+ elif _libwarpx.libwarpx.geometry_dim == 'rz':
idir = ['r', 'z'].index(direction)
celldir = 2*idir
elif _libwarpx.geometry_dim == '1d':
@@ -299,7 +299,7 @@ class _MultiFABWrapper(object):
if ncomps > 1 and ic is None:
sss = tuple(list(sss) + [ncomps])
# --- Create the array to be returned.
- resultglobal = np.zeros(sss, dtype=_libwarpx._numpy_real_dtype)
+ resultglobal = np.zeros(sss, dtype=_libwarpx.libwarpx._numpy_real_dtype)
datalist = []
for i in range(len(fields)):