Skip to content

Commit

Permalink
clean and move time-update
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Sep 13, 2021
1 parent f23bcfe commit 93c5c5c
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions Source/Evolve/WarpXEvolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ WarpX::Evolve (int numsteps)
++istep[lev];
}

cur_time += dt[0];

ShiftGalileanBoundary();

Expand All @@ -247,21 +246,13 @@ WarpX::Evolve (int numsteps)
}


// sync up time
for (int i = 0; i <= max_level; ++i) {
t_new[i] = cur_time;
}
//if (cur_time + dt[0] > stop_time || step == numsteps_max-1) {
// // perform BTD, force_flush=true, BackTransform=true
// amrex::Print() << " compulsory : " << step << " " << numsteps_max-1 << " " << cur_time + dt[0] << " " << stop_time << "\n";
// multi_diags->FilterComputePackFlush( step, true, true );
//} else {
// // perform BTD, force_flush=false, BackTransform=true
// amrex::Print() << " filter compuite pack and flush : " << step << " " << numsteps_max-1 << " " << cur_time + dt[0] << " " << stop_time - 1.e-3*dt[0] << "\n";
// multi_diags->FilterComputePackFlush( step, false, true );
//// sync up time
//for (int i = 0; i <= max_level; ++i) {
// t_new[i] = cur_time;
//}
multi_diags->FilterComputePackFlush( step, false, true );

cur_time += dt[0];
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.
Expand Down

0 comments on commit 93c5c5c

Please sign in to comment.