diff options
author | 2019-09-30 09:40:45 -0700 | |
---|---|---|
committer | 2019-09-30 09:40:45 -0700 | |
commit | 4e31df96d3e73ddc8d9e876c84a5bdb3989dceb0 (patch) | |
tree | 39246610eac8ccaf3504a87ba42d952660b6eaa7 /Source/Parallelization | |
parent | 356f7b7adf3f4272cf4019505b6cab47b6e87889 (diff) | |
download | WarpX-4e31df96d3e73ddc8d9e876c84a5bdb3989dceb0.tar.gz WarpX-4e31df96d3e73ddc8d9e876c84a5bdb3989dceb0.tar.zst WarpX-4e31df96d3e73ddc8d9e876c84a5bdb3989dceb0.zip |
no need to have an extra ghost cell if do_nodal is true
Diffstat (limited to 'Source/Parallelization')
-rw-r--r-- | Source/Parallelization/WarpXRegrid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index 4ae2b6dca..649ea80de 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -92,7 +92,7 @@ WarpX::RemakeLevel (int lev, Real time, const BoxArray& ba, const DistributionMa // Aux patch - if (lev == 0 && field_gathering_algo != GatheringAlgo::MomentumConserving) + if (lev == 0 && Bfield_aux[0][0]->ixType() == Bfield_fp[0][0]->ixType()) { for (int idim = 0; idim < 3; ++idim) { Bfield_aux[lev][idim].reset(new MultiFab(*Bfield_fp[lev][idim], amrex::make_alias, 0, Bfield_aux[lev][idim]->nComp())); |