Skip to content

Commit

Permalink
Update src/particles/plasma/PlasmaParticleContainer.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Maxence Thévenet <maxence.thevenet@desy.de>
  • Loading branch information
EyaDammak and MaxThevenet authored Feb 14, 2025
1 parent d6e5870 commit faabed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particles/plasma/PlasmaParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ LaserIonization (const int islice,
amrex::Real width_p = amrex::abs(A) * delta * (1 - (3./4.) * delta2 - (3./2.) * delta2 + laser_dp_second_prefactor[ion_lev_loc] * delta2);
amrex::Real p_pol = amrex::RandomNormal(0.0, width_p, engine);
ux = p_pol; // Linear polarization is assumed along x.
uz = (amrex::abs(A * A) / 4. + p_pol * p_pol / 2.);
uz = (amrex::abs(A * A) / 4._rt + p_pol * p_pol / 2._rt);
} else {
amrex::Real angle;
angle = amrex::Random(engine) * 2 * MathConst::pi;
Expand Down

0 comments on commit faabed6

Please sign in to comment.