Skip to content

Commit a0e0b8b

Browse files
committed
Remove mutable
1 parent 0246c9d commit a0e0b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/EmbeddedBoundary/ParticleScraper.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ scrapeParticles (PC& pc, const amrex::Vector<const amrex::MultiFab*>& distance_t
201201
{
202202
amrex::Real x_temp, y_temp, z_temp;
203203
amrex::Real dt_fraction = amrex::bisect( 0.0, 1.0,
204-
[=] AMREX_GPU_DEVICE (amrex::Real dt_frac) mutable {
204+
[&] AMREX_GPU_DEVICE (amrex::Real dt_frac) {
205205
x_temp = xp; y_temp = yp; z_temp = zp;
206206
UpdatePosition(x_temp, y_temp, z_temp, ux[ip], uy[ip], uz[ip], -dt_frac*dt);
207207
ablastr::particles::compute_weights_nodal(x_temp, y_temp, z_temp, plo, dxi, i, j, k, W);

0 commit comments

Comments
 (0)