Skip to content

Commit

Permalink
another fix for lev <= num_levels
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Sep 11, 2024
1 parent a2012b7 commit 73fd86c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ ElectrostaticSolver::computePhi (const amrex::Vector<std::unique_ptr<amrex::Mult
amrex::Vector<
amrex::Array<amrex::MultiFab *, AMREX_SPACEDIM>
> e_field;
for (int lev = 0; lev <= num_levels; ++lev) {
for (int lev = 0; lev < num_levels; ++lev) {
e_field.push_back(
#if defined(WARPX_DIM_1D_Z)
amrex::Array<amrex::MultiFab*, 1>{
Expand Down

0 comments on commit 73fd86c

Please sign in to comment.