diff options
-rw-r--r-- | Source/WarpX.cpp | 2 |
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(); |