aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2021-10-25 09:17:12 -0700
committerGravatar GitHub <noreply@github.com> 2021-10-25 09:17:12 -0700
commit90c75145f9fc97898ebc492b07752342cf7e2f3f (patch)
tree377a21db48d4eb7cd910eb4eaee05d7f4bce7bf3 /Python/pywarpx
parent4f24bd291e4f25427e3fc0e6ea872125c5b2bdd1 (diff)
downloadWarpX-90c75145f9fc97898ebc492b07752342cf7e2f3f.tar.gz
WarpX-90c75145f9fc97898ebc492b07752342cf7e2f3f.tar.zst
WarpX-90c75145f9fc97898ebc492b07752342cf7e2f3f.zip
Fix Bug with Python Wrappers for F,G (#2474)
Diffstat (limited to 'Python/pywarpx')
-rwxr-xr-xPython/pywarpx/_libwarpx.py8
-rw-r--r--Python/pywarpx/fields.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/Python/pywarpx/_libwarpx.py b/Python/pywarpx/_libwarpx.py
index e521f8a0b..804110fd6 100755
--- a/Python/pywarpx/_libwarpx.py
+++ b/Python/pywarpx/_libwarpx.py
@@ -1994,7 +1994,7 @@ def get_mesh_phi_fp_lovects(level, include_ghosts=True):
return _get_mesh_array_lovects(level, None, include_ghosts, libwarpx.warpx_getPhiFPLoVects)
-def get_mesh_F_field_cp_lovects(level, include_ghosts=True):
+def get_mesh_F_cp_lovects(level, include_ghosts=True):
'''
This returns a list of the lo vectors of the arrays containing the mesh F field
@@ -2015,7 +2015,7 @@ def get_mesh_F_field_cp_lovects(level, include_ghosts=True):
return _get_mesh_array_lovects(level, None, include_ghosts, libwarpx.warpx_getFfieldCPLoVects)
-def get_mesh_F_field_fp_lovects(level, include_ghosts=True):
+def get_mesh_F_fp_lovects(level, include_ghosts=True):
'''
This returns a list of the lo vectors of the arrays containing the mesh F field
@@ -2036,7 +2036,7 @@ def get_mesh_F_field_fp_lovects(level, include_ghosts=True):
return _get_mesh_array_lovects(level, None, include_ghosts, libwarpx.warpx_getFfieldFPLoVects)
-def get_mesh_G_field_cp_lovects(level, include_ghosts=True):
+def get_mesh_G_cp_lovects(level, include_ghosts=True):
'''
This returns a list of the lo vectors of the arrays containing the mesh G field
@@ -2057,7 +2057,7 @@ def get_mesh_G_field_cp_lovects(level, include_ghosts=True):
return _get_mesh_array_lovects(level, None, include_ghosts, libwarpx.warpx_getGfieldCPLoVects)
-def get_mesh_G_field_fp_lovects(level, include_ghosts=True):
+def get_mesh_G_fp_lovects(level, include_ghosts=True):
'''
This returns a list of the lo vectors of the arrays containing the mesh G field
diff --git a/Python/pywarpx/fields.py b/Python/pywarpx/fields.py
index 8db6f42c6..c4b0e29c6 100644
--- a/Python/pywarpx/fields.py
+++ b/Python/pywarpx/fields.py
@@ -747,15 +747,15 @@ def PhiFPWrapper(level=0, include_ghosts=False):
def FFPWrapper(level=0, include_ghosts=False):
return _MultiFABWrapper(direction=None,
- get_lovects=_libwarpx.get_mesh_F_field_fp_lovects,
- get_fabs=_libwarpx.get_mesh_F_field_fp,
+ get_lovects=_libwarpx.get_mesh_F_fp_lovects,
+ get_fabs=_libwarpx.get_mesh_F_fp,
get_nodal_flag=_libwarpx.get_F_nodal_flag,
level=level, include_ghosts=include_ghosts)
def GFPWrapper(level=0, include_ghosts=False):
return _MultiFABWrapper(direction=None,
- get_lovects=_libwarpx.get_mesh_G_field_fp_lovects,
- get_fabs=_libwarpx.get_mesh_G_field_fp,
+ get_lovects=_libwarpx.get_mesh_G_fp_lovects,
+ get_fabs=_libwarpx.get_mesh_G_fp,
get_nodal_flag=_libwarpx.get_G_nodal_flag,
level=level, include_ghosts=include_ghosts)