Skip to content

Commit

Permalink
Remove mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Nov 16, 2023
1 parent 3741a53 commit 9db4156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/EmbeddedBoundary/ParticleScraper.H
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ scrapeParticles (PC& pc, const amrex::Vector<const amrex::MultiFab*>& distance_t
{
amrex::Real x_temp, y_temp, z_temp;
amrex::Real dt_fraction = amrex::bisect( 0.0, 1.0,
[=] AMREX_GPU_DEVICE (amrex::Real dt_frac) mutable {
[&] AMREX_GPU_DEVICE (amrex::Real dt_frac) {
x_temp = xp; y_temp = yp; z_temp = zp;
UpdatePosition(x_temp, y_temp, z_temp, ux[ip], uy[ip], uz[ip], -dt_frac*dt);
ablastr::particles::compute_weights_nodal(x_temp, y_temp, z_temp, plo, dxi, i, j, k, W);
Expand Down

0 comments on commit 9db4156

Please sign in to comment.