diff options
Diffstat (limited to 'Source/Evolve/WarpXEvolve.cpp')
-rw-r--r-- | Source/Evolve/WarpXEvolve.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index 1a6932696..ad3ec8483 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -251,6 +251,13 @@ WarpX::Evolve (int numsteps) myBFD->writeLabFrameData(cell_centered_data.get(), *mypc, geom[0], cur_time, dt[0]); } + + // sync up time + for (int i = 0; i <= max_level; ++i) { + t_new[i] = cur_time; + } + multi_diags->FilterComputePackFlush( step, false, true ); + bool move_j = is_synchronized; // If is_synchronized we need to shift j too so that next step we can evolve E by dt/2. // We might need to move j because we are going to make a plotfile. @@ -318,11 +325,6 @@ WarpX::Evolve (int numsteps) } } - // sync up time - for (int i = 0; i <= max_level; ++i) { - t_new[i] = cur_time; - } - // warpx_py_afterstep runs with the updated global time. It is included // in the evolve timing. if (warpx_py_afterstep) { @@ -364,7 +366,6 @@ WarpX::Evolve (int numsteps) // End loop on time steps } - multi_diags->FilterComputePackFlushLastTimestep( istep[0] ); if (do_back_transformed_diagnostics) { |