From f51c8bdf36077b3f53cc60ea9633f42a6346f103 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Thu, 4 Mar 2021 10:23:06 -0800 Subject: Remove extra ghost cell used with momentum-conserving gathering (#1758) --- Source/Parallelization/GuardCellManager.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Source/Parallelization/GuardCellManager.cpp') diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index cd295b205..541964cef 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -22,7 +22,6 @@ guardCellManager::Init ( const bool do_fdtd_nci_corr, const bool do_nodal, const bool do_moving_window, - const bool aux_is_nodal, const int moving_window_dir, const int nox, const int nox_fft, const int noy_fft, const int noz_fft, @@ -161,8 +160,6 @@ guardCellManager::Init ( ng_alloc_F = IntVect(AMREX_D_DECL(ng_alloc_F_int, ng_alloc_F_int, ng_alloc_F_int)); } - ng_Extra = IntVect(static_cast(aux_is_nodal and !do_nodal)); - // Compute number of cells required for Field Solver if (maxwell_solver_id == MaxwellSolverAlgo::PSATD) { ng_FieldSolver = ng_alloc_EB; @@ -189,10 +186,6 @@ guardCellManager::Init ( // Compute number of cells required for Field Gather int FGcell[4] = {0,1,1,2}; // Index is nox IntVect ng_FieldGather_noNCI = IntVect(AMREX_D_DECL(FGcell[nox],FGcell[nox],FGcell[nox])); - // Add one cell if momentum_conserving gather in a staggered-field simulation - ng_FieldGather_noNCI += ng_Extra; - // Not sure why, but need one extra guard cell when using MR - if (max_level >= 1) ng_FieldGather_noNCI += ng_Extra; ng_FieldGather_noNCI = ng_FieldGather_noNCI.min(ng_alloc_EB); // If NCI filter, add guard cells in the z direction IntVect ng_NCIFilter = IntVect::TheZeroVector(); -- cgit v1.2.3