aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.H
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2021-01-27 10:02:18 -0800
committerGravatar GitHub <noreply@github.com> 2021-01-27 10:02:18 -0800
commit85bc4610adbdd5a48f1cbe666f11db6b72a781c0 (patch)
tree1616b2a7082196182a853ac85a336974f80dc680 /Source/Parallelization/GuardCellManager.H
parent8c1c80cedbb86df828f49a3616681dc7d73c3946 (diff)
downloadWarpX-85bc4610adbdd5a48f1cbe666f11db6b72a781c0.tar.gz
WarpX-85bc4610adbdd5a48f1cbe666f11db6b72a781c0.tar.zst
WarpX-85bc4610adbdd5a48f1cbe666f11db6b72a781c0.zip
Take time step into account to compute guard cells for J and rho (#1607)
* Use IntVect for ng_J and ng_rho * Compute guard cells for J and rho based on dt * Reset some CI benchmarks * Fix rebase commit * Add back +1 cell for rho: fix remaining out-of-bound accesses * Simplify ASSERTS using new interface of amrex::numParticlesOutOfRange
Diffstat (limited to 'Source/Parallelization/GuardCellManager.H')
-rw-r--r--Source/Parallelization/GuardCellManager.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Parallelization/GuardCellManager.H b/Source/Parallelization/GuardCellManager.H
index d2f764fbb..0e6daea3e 100644
--- a/Source/Parallelization/GuardCellManager.H
+++ b/Source/Parallelization/GuardCellManager.H
@@ -8,6 +8,7 @@
#define GUARDCELLMANAGER_H_
#include <AMReX_IntVect.H>
+#include <AMReX_RealVect.H>
/**
* \brief This class computes and stores the number of guard cells needed for
@@ -35,6 +36,8 @@ public:
* \param max_level max level of the simulation
*/
void Init(
+ const amrex::Real dt,
+ const amrex::RealVect dx,
const bool do_subcycling,
const bool do_fdtd_nci_corr,
const bool do_nodal,
@@ -48,7 +51,8 @@ public:
const int max_level,
const amrex::Array<amrex::Real,3> v_galilean,
const amrex::Array<amrex::Real,3> v_comoving,
- const bool safe_guard_cells);
+ const bool safe_guard_cells,
+ const int do_electrostatic);
// Guard cells allocated for MultiFabs E and B
amrex::IntVect ng_alloc_EB = amrex::IntVect::TheZeroVector();