aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-10-30 11:40:55 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-10-30 11:40:55 -0700
commitcba96cce872c78a5960097490fc80d0ae14f6bd7 (patch)
tree585e526aae2d4e057f81def2aee350f4b83db20a /Source/Parallelization
parent0fe1905133033f128b235a14b04135c064800521 (diff)
downloadWarpX-cba96cce872c78a5960097490fc80d0ae14f6bd7.tar.gz
WarpX-cba96cce872c78a5960097490fc80d0ae14f6bd7.tar.zst
WarpX-cba96cce872c78a5960097490fc80d0ae14f6bd7.zip
no need to pass ng in ShiftMF
Diffstat (limited to 'Source/Parallelization')
-rw-r--r--Source/Parallelization/GuardCellManager.H3
-rw-r--r--Source/Parallelization/GuardCellManager.cpp9
2 files changed, 8 insertions, 4 deletions
diff --git a/Source/Parallelization/GuardCellManager.H b/Source/Parallelization/GuardCellManager.H
index 706b5df79..e241eed75 100644
--- a/Source/Parallelization/GuardCellManager.H
+++ b/Source/Parallelization/GuardCellManager.H
@@ -30,8 +30,7 @@ public:
int ngF_int = 0;
// Guard cells to exchange data
- amrex::IntVect ngB_FieldSolver = amrex::IntVect::TheZeroVector();
- amrex::IntVect ngE_FieldSolver = amrex::IntVect::TheZeroVector();
+ amrex::IntVect ng_FieldSolver = amrex::IntVect::TheZeroVector();
amrex::IntVect ng_FieldGather = amrex::IntVect::TheZeroVector();
amrex::IntVect ngJ_CurrentDepo = amrex::IntVect::TheZeroVector();
amrex::IntVect ng_MovingWindow = amrex::IntVect::TheZeroVector();
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp
index 166f0d58d..a67e15eb7 100644
--- a/Source/Parallelization/GuardCellManager.cpp
+++ b/Source/Parallelization/GuardCellManager.cpp
@@ -1,4 +1,5 @@
#include "GuardCellManager.H"
+#include <AMReX_Print.H>
using namespace amrex;
@@ -121,11 +122,15 @@ guardCellManager::Init(
ngF = IntVect(AMREX_D_DECL(ngF_int, ngF_int, ngF_int));
#endif
+ Print()<<"rrr ngE : "<<ngE <<'\n';
+ Print()<<"rrr ngJ : "<<ngJ <<'\n';
+ Print()<<"rrr ngRho: "<<ngRho<<'\n';
+ Print()<<"rrr ngF : "<<ngF <<'\n';
+
ngExtra = IntVect(static_cast<int>(aux_is_nodal and !do_nodal));
// Guard cells for field solver
- ngB_FieldSolver = IntVect(AMREX_D_DECL(1,1,1));
- ngE_FieldSolver = IntVect(AMREX_D_DECL(1,1,1));
+ ng_FieldSolver = IntVect(AMREX_D_DECL(1,1,1));
ng_MovingWindow = IntVect(AMREX_D_DECL(0,0,0)); // Multiplied by number of cells moved at each timestep
ng_MovingWindow[moving_window_dir] = 1;
int FGcell[4] = {0,1,1,2}; // Index is nox