From d0b48e559b1a98b8e8e4960d8ff8cd8485a1639a Mon Sep 17 00:00:00 2001 From: David Grote Date: Sun, 1 Sep 2024 12:03:26 -0700 Subject: [PATCH] Fix in NodalFieldGather.H --- Source/ablastr/particles/NodalFieldGather.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));