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 7d0d77c commit 4778663
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/particles/plasma/PlasmaParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ LaserIonization (const int islice,
// A_t = A (e_x +/- i e_y) in circular polarization
ux = std::sqrt(amrex::abs(A*A)) * std::cos(angle);
uy = std::sqrt(amrex::abs(A*A)) * std::sin(angle);
uz = amrex::abs(A*A);// / 2.;
// uz differs from Massimo PRE 2020 by a factor of 2 due to different
// convention for linear vs. circular polarization.
uz = amrex::abs(A*A);
}

const long pid = amrex::Gpu::Atomic::Add( p_ip_elec, 1u ); // ensures thread-safe access when incrementing `p_ip_elec`
Expand Down

0 comments on commit 4778663

Please sign in to comment.