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.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/Python/pywarpx/fields.py b/Python/pywarpx/fields.py
index 56ab6fd2e..2577902c4 100644
--- a/Python/pywarpx/fields.py
+++ b/Python/pywarpx/fields.py
@@ -669,6 +669,27 @@ def PhiFPWrapper(level=0, include_ghosts=False):
get_nodal_flag=libwarpx.get_Phi_nodal_flag,
level=level, include_ghosts=include_ghosts)
+def AxFPWrapper(level=0, include_ghosts=False):
+ return _MultiFABWrapper(direction=0,
+ get_lovects=libwarpx.get_mesh_vector_potential_fp_lovects,
+ get_fabs=libwarpx.get_mesh_vector_potential_fp,
+ get_nodal_flag=libwarpx.get_Ax_nodal_flag,
+ level=level, include_ghosts=include_ghosts)
+
+def AyFPWrapper(level=0, include_ghosts=False):
+ return _MultiFABWrapper(direction=1,
+ get_lovects=libwarpx.get_mesh_vector_potential_fp_lovects,
+ get_fabs=libwarpx.get_mesh_vector_potential_fp,
+ get_nodal_flag=libwarpx.get_Ay_nodal_flag,
+ level=level, include_ghosts=include_ghosts)
+
+def AzFPWrapper(level=0, include_ghosts=False):
+ return _MultiFABWrapper(direction=2,
+ get_lovects=libwarpx.get_mesh_vector_potential_fp_lovects,
+ get_fabs=libwarpx.get_mesh_vector_potential_fp,
+ get_nodal_flag=libwarpx.get_Az_nodal_flag,
+ level=level, include_ghosts=include_ghosts)
+
def FFPWrapper(level=0, include_ghosts=False):
return _MultiFABWrapper(direction=None,
get_lovects=libwarpx.get_mesh_F_fp_lovects,