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;