aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 72adbe889..17a47caaa 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -1062,9 +1062,7 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm
if (load_balance_intervals.isActivated())
{
- costs[lev].reset(new amrex::Vector<Real>);
- const int nboxes = Efield_fp[lev][0].get()->size();
- costs[lev]->resize(nboxes);
+ costs[lev].reset(new amrex::LayoutData<Real>(ba, dm));
}
}