Skip to content

Commit

Permalink
add reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PrometheusPi committed Sep 24, 2024
1 parent c575da0 commit 7ffae51
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ namespace picongpu::particles::manipulators::unary::acc
* @tparam T_UniformRng functor::misc::RngWrapper, standard
* normal random number generator type
* @tparam T_Particle particle type
* @tparam T_MaxwellJuettner temperature type
*
* @param uniformRng random number generator
* @param particle particle to be manipulated
Expand Down Expand Up @@ -91,7 +92,7 @@ namespace picongpu::particles::manipulators::unary::acc
float_X cos_2_pi_y2;
math::sincos(precisionCast<float_X>(2._X * PI * y2), sin_2_pi_y2, cos_2_pi_y2);

float3_X mom = float3_X(
auto mom = float3_X(
momAbs * (2._X * y1 - 1._X),
2._X * momAbs * math::sqrt(y1 * (1._X - y1)) * cos_2_pi_y2,
2._X * momAbs * math::sqrt(y1 * (1._X - y1)) * sin_2_pi_y2);
Expand Down

0 comments on commit 7ffae51

Please sign in to comment.