From 73fd86c5cb4f6d9ac82202b81489d026c6ee3de4 Mon Sep 17 00:00:00 2001 From: roelof-groenewald Date: Wed, 11 Sep 2024 12:05:51 -0700 Subject: [PATCH] another fix for `lev <= num_levels` --- Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp index cd069b1180a..945b6d0cbc6 100644 --- a/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp +++ b/Source/FieldSolver/ElectrostaticSolvers/ElectrostaticSolver.cpp @@ -144,7 +144,7 @@ ElectrostaticSolver::computePhi (const amrex::Vector > 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{