diff options
-rw-r--r-- | Source/Evolve/WarpXEvolveEM.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Source/Evolve/WarpXEvolveEM.cpp b/Source/Evolve/WarpXEvolveEM.cpp index c94293987..29349ab1d 100644 --- a/Source/Evolve/WarpXEvolveEM.cpp +++ b/Source/Evolve/WarpXEvolveEM.cpp @@ -370,11 +370,6 @@ WarpX::OneStep_nosub (Real cur_time) // E and B are up-to-date in the domain, but all guard cells are // outdated. #endif -//FillBoundaryE(guard_cells.ng_alloc_EB, guard_cells.ng_Extra); -//FillBoundaryB(guard_cells.ng_alloc_EB, guard_cells.ng_Extra); -//FillBoundaryF(guard_cells.ng_alloc_F); -//FillBoundaryAux(guard_cells.ng_UpdateAux); -//all_FillBoundary(); } /* /brief Perform one PIC iteration, with subcycling @@ -398,7 +393,6 @@ void WarpX::OneStep_sub1 (Real curtime) { // TODO: we could save some charge depositions - // Loop over species. For each ionizable species, create particles in // product species. mypc->doFieldIonization(); @@ -520,12 +514,12 @@ WarpX::OneStep_sub1 (Real curtime) EvolveF(coarse_lev, PatchType::fine, 0.5*dt[coarse_lev], DtType::SecondHalf); if (do_pml) { - if (do_moving_window & field_gathering_algo == GatheringAlgo::MomentumConserving){ + if (do_moving_window){ // Exchance guard cells of PMLs only (0 cells are exchanged for the - // regular B field MultiFab). This is required as B has just been - // evolved and one guard cell is needed for the averaging - // in momentum-conserving gather. + // regular B field MultiFab). This is required as B and F have just been + // evolved. FillBoundaryB(coarse_lev, PatchType::fine, IntVect::TheZeroVector()); + FillBoundaryF(coarse_lev, PatchType::fine, IntVect::TheZeroVector()); } DampPML(coarse_lev, PatchType::fine); } |