From 4a48d0f85733fdeef5edbd262e08982a748a33fb Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 19 Mar 2024 20:03:25 -0400 Subject: [PATCH] remove mutable keyword on LoopOnCpu we capture by reference, so this doesn't seem required and updates to the AMReX interfaces mean it doesn't work anymore --- Source/reactions/Castro_react.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/reactions/Castro_react.cpp b/Source/reactions/Castro_react.cpp index 73c5a3c873..bc070c7359 100644 --- a/Source/reactions/Castro_react.cpp +++ b/Source/reactions/Castro_react.cpp @@ -213,7 +213,7 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra #if defined(AMREX_USE_GPU) ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) #else - LoopOnCpu(bx, [&] (int i, int j, int k) mutable + LoopOnCpu(bx, [&] (int i, int j, int k) #endif { @@ -558,7 +558,7 @@ Castro::react_state(Real time, Real dt) #if defined(AMREX_USE_GPU) ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) #else - LoopOnCpu(bx, [&] (int i, int j, int k) mutable + LoopOnCpu(bx, [&] (int i, int j, int k) #endif { burn_t burn_state;