diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WarpX.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index d2ccc71ef..6c6bb8107 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -916,12 +916,13 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm // // Copy of the coarse aux // - if (lev > 0 && (n_field_gather_buffer > 0 || n_current_deposition_buffer > 0)) + if (lev > 0 && (n_field_gather_buffer > 0 || n_current_deposition_buffer > 0 || + mypc->nSpeciesGatherFromMainGrid() > 0)) { BoxArray cba = ba; cba.coarsen(refRatio(lev-1)); - if (n_field_gather_buffer > 0) { + if (n_field_gather_buffer > 0 || mypc->nSpeciesGatherFromMainGrid() > 0) { // Create the MultiFabs for B Bfield_cax[lev][0].reset( new MultiFab(amrex::convert(cba,Bx_nodal_flag),dm,ncomps,ngE)); Bfield_cax[lev][1].reset( new MultiFab(amrex::convert(cba,By_nodal_flag),dm,ncomps,ngE)); |