Skip to content

Commit

Permalink
Fix in NodalFieldGather.H
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Sep 1, 2024
1 parent 1215684 commit d0b48e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ablastr/particles/NodalFieldGather.H
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(amrex::Math::floor(r));
Expand Down

0 comments on commit d0b48e5

Please sign in to comment.