diff options
author | 2017-06-27 11:27:12 -0700 | |
---|---|---|
committer | 2017-06-27 11:27:12 -0700 | |
commit | b105bb23fd20a4e45c0c77f4544d25f9d6aa7253 (patch) | |
tree | 9ba0c275dbd5a17ee89c94c58aad88ca99e2339c /Source/WarpX.cpp | |
parent | 2af0e64ee5cfa4eeaf6bd199b038df6c69c7d25e (diff) | |
download | WarpX-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.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(); |