aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.H')
-rw-r--r--Source/WarpX.H9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H
index 4620ca6de..1549dded2 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -119,6 +119,9 @@ public:
static long particle_pusher_algo;
static int maxwell_fdtd_solver_id;
+ // div E cleaning
+ static int do_dive_cleaning;
+
// Interpolation order
static long nox;
static long noy;
@@ -177,6 +180,9 @@ public:
const amrex::MultiFab& getEfield_fp (int lev, int direction) {return *Efield_fp[lev][direction];}
const amrex::MultiFab& getBfield_fp (int lev, int direction) {return *Bfield_fp[lev][direction];}
+ /** get low-high-low-high-... vector for each direction indicating if mother grid PMLs are enabled */
+ std::vector<bool> getPMLdirections() const;
+
static amrex::MultiFab* getCosts (int lev) {
if (m_instance) {
return m_instance->costs[lev].get();
@@ -573,9 +579,6 @@ private:
amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3 > > current_buf;
amrex::Vector<std::unique_ptr<amrex::MultiFab> > charge_buf;
- // div E cleaning
- int do_dive_cleaning = 0;
-
// PML
int do_pml = 1;
int pml_ncell = 10;