From 96cc7fab9c26fa317b7a84c02b977deb411e771e Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Tue, 23 Jan 2024 17:38:04 -0800 Subject: [PATCH] fix cbl --- Source/BoundaryConditions/PML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/BoundaryConditions/PML.cpp b/Source/BoundaryConditions/PML.cpp index 4220b373572..ab109c8b4ab 100644 --- a/Source/BoundaryConditions/PML.cpp +++ b/Source/BoundaryConditions/PML.cpp @@ -784,7 +784,7 @@ PML::PML (const int lev, const BoxArray& grid_ba, const DistributionMapping& gri amrex::Box cdomain = grid_cba.minimalBox(); amrex::BoxList cbl = grid_cba.simplified_list(); if (do_pml_in_domain) { - for (amrex::Box cb : cbl) { + for (amrex::Box &cb : cbl) { for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) { // if (do_pml_Lo[idim]){ // // ncell is divided by refinement ratio to ensure that the