diff options
Diffstat (limited to 'Source/WarpXEvolve.cpp')
-rw-r--r-- | Source/WarpXEvolve.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WarpXEvolve.cpp b/Source/WarpXEvolve.cpp index 6ce7db0ef..cda70dd53 100644 --- a/Source/WarpXEvolve.cpp +++ b/Source/WarpXEvolve.cpp @@ -260,7 +260,12 @@ WarpX::EvolveEM (int numsteps) // We might need to move j because we are going to make a plotfile. MoveWindow(move_j); - mypc->Redistribute(); // Redistribute particles + if (max_level == 0) { + mypc->RedistributeLocal(); + } + else { + mypc->Redistribute(); + } amrex::Print()<< "STEP " << step+1 << " ends." << " TIME = " << cur_time << " DT = " << dt[0] << "\n"; |