diff --git a/Source/ablastr/particles/NodalFieldGather.H b/Source/ablastr/particles/NodalFieldGather.H index 80ea0558dde..347d00579fe 100644 --- a/Source/ablastr/particles/NodalFieldGather.H +++ b/Source/ablastr/particles/NodalFieldGather.H @@ -104,7 +104,7 @@ void compute_weights (const amrex::ParticleReal xp, j = 0; k = 0; -#elif defined(WARPX_DIM_RSPHERE +#elif defined(WARPX_DIM_RSPHERE) const amrex::Real r = (std::sqrt(xp*xp+yp*yp+zp*zp) - plo[0]) * dxi[0] - half_if_cell_centered; i = static_cast(amrex::Math::floor(r));