diff options
author | 2020-05-05 17:40:24 -0700 | |
---|---|---|
committer | 2020-05-05 17:40:24 -0700 | |
commit | f1fcac8a018c46fe0ae587469b2bf92862110f7a (patch) | |
tree | 425d8d92dbca75ebe5413b0499d601cef36f33dc /Source/WarpX.cpp | |
parent | bc76960209c232fd2e47f19099470156320f16c7 (diff) | |
download | WarpX-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.cpp | 4 |
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)); } } |