aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/WarpXRegrid.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-11-29 10:38:09 +0100
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-11-29 10:38:09 +0100
commit9314ae556f7a1e586b619619414dddf282c85ecc (patch)
tree6d044f8cfa6377bb2118f3731e34a088cd8d0606 /Source/Parallelization/WarpXRegrid.cpp
parent5d7940bf90820207e763ad762003f8c101904234 (diff)
parent616a6aaedc186ef4b08a5a0bd2858b6bd747c968 (diff)
downloadWarpX-9314ae556f7a1e586b619619414dddf282c85ecc.tar.gz
WarpX-9314ae556f7a1e586b619619414dddf282c85ecc.tar.zst
WarpX-9314ae556f7a1e586b619619414dddf282c85ecc.zip
Merge remote-tracking branch 'upstream/dev' into qed_evolve_optical_depth
Diffstat (limited to 'Source/Parallelization/WarpXRegrid.cpp')
-rw-r--r--Source/Parallelization/WarpXRegrid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp
index 2ae167283..29ccc8f4d 100644
--- a/Source/Parallelization/WarpXRegrid.cpp
+++ b/Source/Parallelization/WarpXRegrid.cpp
@@ -1,4 +1,3 @@
-
#include <WarpX.H>
#include <AMReX_BLProfiler.H>
@@ -12,7 +11,8 @@ WarpX::LoadBalance ()
AMREX_ALWAYS_ASSERT(costs[0] != nullptr);
- for (int lev = 0; lev <= finestLevel(); ++lev)
+ const int nLevels = finestLevel();
+ for (int lev = 0; lev <= nLevels; ++lev)
{
const Real nboxes = costs[lev]->size();
const Real nprocs = ParallelDescriptor::NProcs();