From 765969f63e46721043200c0b4c4977311d3b1d7d Mon Sep 17 00:00:00 2001 From: Zhi Date: Tue, 17 Sep 2024 16:43:25 -0400 Subject: [PATCH] fix compilation --- Source/driver/Castro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/driver/Castro.cpp b/Source/driver/Castro.cpp index c499274250..439b4bdf63 100644 --- a/Source/driver/Castro.cpp +++ b/Source/driver/Castro.cpp @@ -2886,13 +2886,13 @@ Castro::reflux (int crse_level, int fine_level, bool in_post_timestep) MultiFab rdtheta(crse_lev.grids, crse_lev.dmap, 1, 0); - auto problo = Geom().ProbLo(); + const auto* problo = Geom().ProbLo(); auto dr = crse_lev.geom.CellSize(0); auto dtheta = crse_lev.geom.CellSize(1); auto const& ma = rdtheta.arrays(); - amrex:ParallelFor(rdtheta, + amrex::ParallelFor(rdtheta, [=] AMREX_GPU_DEVICE (int b, int i, int j, int k) noexcept { Real r = problo[0] + static_cast(i + 0.5_rt) * dr;