Skip to content

Commit

Permalink
remove mutable keyword on LoopOnCpu
Browse files Browse the repository at this point in the history
we capture by reference, so this doesn't seem required
and updates to the AMReX interfaces mean it doesn't work anymore
  • Loading branch information
zingale committed Mar 20, 2024
1 parent 3942b71 commit ad81d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ad81d92

Please sign in to comment.