Skip to content

Commit

Permalink
Bug fix: the electric field calculation for ionization had a bug if e…
Browse files Browse the repository at this point in the history
…xternal electric field and grid electric field co-exist in the quasi-cylindrical geometry. This commit fixes this bug. (ECP-WarpX#4094)
  • Loading branch information
MaMH111 authored Nov 7, 2023
1 parent b3ba07d commit 797eee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Particles/ElementaryProcess/Ionization.H
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ struct IonizationFilterFunc

amrex::ParticleReal ex = 0._rt, ey = 0._rt, ez = 0._rt;
amrex::ParticleReal bx = 0._rt, by = 0._rt, bz = 0._rt;
m_get_externalEB(i, ex, ey, ez, bx, by, bz);

doGatherShapeN(xp, yp, zp, ex, ey, ez, bx, by, bz,
m_ex_arr, m_ey_arr, m_ez_arr, m_bx_arr, m_by_arr, m_bz_arr,
m_ex_type, m_ey_type, m_ez_type, m_bx_type, m_by_type, m_bz_type,
m_dx_arr, m_xyzmin_arr, m_lo, m_n_rz_azimuthal_modes,
m_nox, m_galerkin_interpolation);
m_get_externalEB(i, ex, ey, ez, bx, by, bz);

// Compute electric field amplitude in the particle's frame of
// reference (particularly important when in boosted frame).
Expand Down

0 comments on commit 797eee6

Please sign in to comment.