diff options
author | 2019-10-24 09:29:29 -0700 | |
---|---|---|
committer | 2019-10-24 09:29:29 -0700 | |
commit | ae5a90efcbef57d4619ad1111c52a46dbdb5bcd6 (patch) | |
tree | 05e0ade84bc6a33ee11fb3bb02ad7266dc46820f /Source/WarpX.cpp | |
parent | 77c25000e30de3994d0932e30720db0b4d1723f7 (diff) | |
download | WarpX-ae5a90efcbef57d4619ad1111c52a46dbdb5bcd6.tar.gz WarpX-ae5a90efcbef57d4619ad1111c52a46dbdb5bcd6.tar.zst WarpX-ae5a90efcbef57d4619ad1111c52a46dbdb5bcd6.zip |
cleanup and comment
Diffstat (limited to '')
-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 a0362dd57..9ba0741bb 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -876,7 +876,8 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm // if (aux_is_nodal and !do_nodal) { - BoxArray const nba = amrex::convert(ba,IntVect::TheUnitVector()); + // Create aux multifabs on Nodal Box Array + BoxArray const nba = amrex::convert(ba,IntVect::TheNodeVector()); Bfield_aux[lev][0].reset( new MultiFab(nba,dm,ncomps,ngE)); Bfield_aux[lev][1].reset( new MultiFab(nba,dm,ncomps,ngE)); Bfield_aux[lev][2].reset( new MultiFab(nba,dm,ncomps,ngE)); @@ -967,7 +968,7 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm if (n_field_gather_buffer > 0 || mypc->nSpeciesGatherFromMainGrid() > 0) { if (aux_is_nodal) { - BoxArray const& cnba = amrex::convert(cba,IntVect::TheUnitVector()); + BoxArray const& cnba = amrex::convert(cba,IntVect::TheNodeVector()); Bfield_cax[lev][0].reset( new MultiFab(cnba,dm,ncomps,ngE)); Bfield_cax[lev][1].reset( new MultiFab(cnba,dm,ncomps,ngE)); Bfield_cax[lev][2].reset( new MultiFab(cnba,dm,ncomps,ngE)); |