diff options
Diffstat (limited to 'Source/Evolve/WarpXEvolve.cpp')
-rw-r--r-- | Source/Evolve/WarpXEvolve.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index bc1e31806..8ca059184 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -61,7 +61,7 @@ WarpX::Evolve (int numsteps) if (warpx_py_beforestep) warpx_py_beforestep(); #endif - amrex::Vector<amrex::Real>* cost = WarpX::getCosts(0); + amrex::LayoutData<amrex::Real>* cost = WarpX::getCosts(0); if (cost) { #ifdef WARPX_USE_PSATD amrex::Abort("LoadBalance for PSATD: TODO"); @@ -82,7 +82,7 @@ WarpX::Evolve (int numsteps) // (Giving more importance to most recent costs; only needed // for timers update, heuristic load balance considers the // instantaneous costs) - for (int i=0; i<cost->size(); ++i) + for (int i : cost->IndexArray()) { (*cost)[i] *= (1. - 2./load_balance_intervals.localPeriod(step+1)); } |