Skip to content

Commit

Permalink
Revert "remove mutable keyword on LoopOnCpu"
Browse files Browse the repository at this point in the history
This reverts commit ad81d92.
  • Loading branch information
zingale committed Mar 20, 2024
1 parent ad81d92 commit bc483ba
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)
LoopOnCpu(bx, [&] (int i, int j, int k) mutable
#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)
LoopOnCpu(bx, [&] (int i, int j, int k) mutable
#endif
{
burn_t burn_state;
Expand Down

0 comments on commit bc483ba

Please sign in to comment.