aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Michael E Rowan <38045958+mrowan137@users.noreply.github.com> 2020-05-05 17:40:24 -0700
committerGravatar GitHub <noreply@github.com> 2020-05-05 17:40:24 -0700
commitf1fcac8a018c46fe0ae587469b2bf92862110f7a (patch)
tree425d8d92dbca75ebe5413b0499d601cef36f33dc /Source/WarpX.cpp
parentbc76960209c232fd2e47f19099470156320f16c7 (diff)
downloadWarpX-f1fcac8a018c46fe0ae587469b2bf92862110f7a.tar.gz
WarpX-f1fcac8a018c46fe0ae587469b2bf92862110f7a.tar.zst
WarpX-f1fcac8a018c46fe0ae587469b2bf92862110f7a.zip
Switch costs to LayoutData (#970)
Cleanup Cleanup
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));
}
}