Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored Dec 21, 2023
1 parent c72c3db commit 57456a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Diagnostics/ReducedDiags/BeamRelevant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ void BeamRelevant::ComputeDiags (int step)
const ParticleReal p_theta = p.rdata(PIdx::theta);
const ParticleReal p_x_mean = p_pos0*std::cos(p_theta)*p_w;
const ParticleReal p_y_mean = p_pos0*std::sin(p_theta)*p_w;
#elif defined (WARPX_DIM_XZ)
#elif defined(WARPX_DIM_XZ)
const ParticleReal p_x_mean = p_pos0*p_w;
const ParticleReal p_y_mean = 0;
#elif defined (WARPX_DIM_1D_Z)
#elif defined(WARPX_DIM_1D_Z)
amrex::ignore_unused(p_pos0);
const ParticleReal p_x_mean = 0;
const ParticleReal p_y_mean = 0;
Expand Down

0 comments on commit 57456a4

Please sign in to comment.