aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> 2021-05-24 20:54:23 +0200
committerGravatar GitHub <noreply@github.com> 2021-05-24 11:54:23 -0700
commitebedf1d5808eb6d051fd90717c5b8923e8b1a98a (patch)
tree7fb9ded643fb2250f50475c591e6ecad26ad89c1 /Source
parent996505b96ec9ae025e22cd4214ff904479818d5c (diff)
downloadWarpX-ebedf1d5808eb6d051fd90717c5b8923e8b1a98a.tar.gz
WarpX-ebedf1d5808eb6d051fd90717c5b8923e8b1a98a.tar.zst
WarpX-ebedf1d5808eb6d051fd90717c5b8923e8b1a98a.zip
Call FillBoundary before momentum half-push at last timestep (#1954)
* Call FillBoundary before momentum half-push at last timestep * Call FillBoundary before momentum half-push at last timestep * Update benchmarks * Update benchmarks again
Diffstat (limited to 'Source')
-rw-r--r--Source/Evolve/WarpXEvolve.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp
index e48166cf1..f0cf5ed60 100644
--- a/Source/Evolve/WarpXEvolve.cpp
+++ b/Source/Evolve/WarpXEvolve.cpp
@@ -166,6 +166,13 @@ WarpX::Evolve (int numsteps)
if (cur_time + dt[0] >= stop_time - 1.e-3*dt[0] || step == numsteps_max-1) {
// At the end of last step, push p by 0.5*dt to synchronize
+ FillBoundaryE(guard_cells.ng_FieldGather);
+ FillBoundaryB(guard_cells.ng_FieldGather);
+ if (fft_do_time_averaging)
+ {
+ FillBoundaryE_avg(guard_cells.ng_FieldGather);
+ FillBoundaryB_avg(guard_cells.ng_FieldGather);
+ }
UpdateAuxilaryData();
FillBoundaryAux(guard_cells.ng_UpdateAux);
for (int lev = 0; lev <= finest_level; ++lev) {