aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Python/WarpXWrappers.cpp12
-rw-r--r--Source/WarpX.H2
2 files changed, 14 insertions, 0 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index 42128c76d..0e2691576 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -337,6 +337,8 @@ extern "C"
int* warpx_getJz_nodal_flag() {return getFieldNodalFlagData( WarpX::GetInstance().getcurrent(0,2) );}
int* warpx_getRho_nodal_flag() {return getFieldNodalFlagData( WarpX::GetInstance().getrho_fp(0) );}
int* warpx_getPhi_nodal_flag() {return getFieldNodalFlagData( WarpX::GetInstance().getphi_fp(0) );}
+ int* warpx_getF_nodal_flag() {return getFieldNodalFlagData( WarpX::GetInstance().getF_fp(0) );}
+ int* warpx_getG_nodal_flag() {return getFieldNodalFlagData( WarpX::GetInstance().getG_fp(0) );}
#define WARPX_GET_SCALAR(SCALAR, GETTER) \
amrex::Real** SCALAR(int lev, \
@@ -362,6 +364,16 @@ extern "C"
WARPX_GET_LOVECTS_SCALAR(warpx_getPhiFPLoVects, WarpX::GetInstance().getphi_fp)
+ // F and G
+ WARPX_GET_SCALAR(warpx_getFfieldCP, WarpX::GetInstance().getF_cp)
+ WARPX_GET_SCALAR(warpx_getFfieldFP, WarpX::GetInstance().getF_fp)
+ WARPX_GET_LOVECTS_SCALAR(warpx_getFfieldCPLoVects, WarpX::GetInstance().getF_cp)
+ WARPX_GET_LOVECTS_SCALAR(warpx_getFfieldFPLoVects, WarpX::GetInstance().getF_fp)
+ WARPX_GET_SCALAR(warpx_getGfieldCP, WarpX::GetInstance().getG_cp)
+ WARPX_GET_SCALAR(warpx_getGfieldFP, WarpX::GetInstance().getG_fp)
+ WARPX_GET_LOVECTS_SCALAR(warpx_getGfieldCPLoVects, WarpX::GetInstance().getG_cp)
+ WARPX_GET_LOVECTS_SCALAR(warpx_getGfieldFPLoVects, WarpX::GetInstance().getG_fp)
+
#define WARPX_GET_FIELD_PML(FIELD, GETTER) \
amrex::Real** FIELD(int lev, int direction, \
int *return_size, int *ncomps, int **ngrowvect, int **shapes) { \
diff --git a/Source/WarpX.H b/Source/WarpX.H
index 0ba6e9001..ebceb4a45 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -329,6 +329,8 @@ public:
const amrex::MultiFab& getEfield_cp (int lev, int direction) {return *Efield_cp[lev][direction];}
const amrex::MultiFab& getBfield_cp (int lev, int direction) {return *Bfield_cp[lev][direction];}
const amrex::MultiFab& getrho_cp (int lev) {return *rho_cp[lev];}
+ const amrex::MultiFab& getF_cp (int lev) {return *F_cp[lev];}
+ const amrex::MultiFab& getG_cp (int lev) {return *G_cp[lev];}
const amrex::MultiFab& getcurrent_fp (int lev, int direction) {return *current_fp[lev][direction];}
const amrex::MultiFab& getEfield_fp (int lev, int direction) {return *Efield_fp[lev][direction];}