aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2017-06-27 11:27:12 -0700
committerGravatar Andrew Myers <atmyers2@gmail.com> 2017-06-27 11:27:12 -0700
commitb105bb23fd20a4e45c0c77f4544d25f9d6aa7253 (patch)
tree9ba0c275dbd5a17ee89c94c58aad88ca99e2339c /Source/WarpX.cpp
parent2af0e64ee5cfa4eeaf6bd199b038df6c69c7d25e (diff)
downloadWarpX-b105bb23fd20a4e45c0c77f4544d25f9d6aa7253.tar.gz
WarpX-b105bb23fd20a4e45c0c77f4544d25f9d6aa7253.tar.zst
WarpX-b105bb23fd20a4e45c0c77f4544d25f9d6aa7253.zip
fix bug I introduced through some bad copy/pasting.
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index af5d6159c..f8ca2b80b 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -570,7 +570,7 @@ void WarpX::computeE(Array<std::array<std::unique_ptr<MultiFab>, 3> >& E,
const int num_levels = E.size();
for (int lev = 0; lev < num_levels; ++lev) {
- const auto& gm = GetInstance().Geom(0);
+ const auto& gm = GetInstance().Geom(lev);
const Real* dx = gm.CellSize();
for (MFIter mfi(*phi[lev]); mfi.isValid(); ++mfi) {
const Box& bx = mfi.validbox();