Skip to content

Commit

Permalink
Fix tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Oct 29, 2024
1 parent 45958e4 commit de4fd09
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
24 changes: 13 additions & 11 deletions src/processes/one_photon_compton/perturbative/cross_section.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,19 @@ function _pert_compton_matrix_element(
QEDbase._as_svec(out_photon_state),
)

matrix_elements = NTuple{length(base_states_comb),ComplexF64}(
_pert_compton_matrix_element_single(
in_electron_mom,
in_el,
in_photon_mom,
in_ph,
out_electron_mom,
out_el,
out_photon_mom,
out_ph,
) for (in_el, in_ph, out_el, out_ph) in base_states_comb
matrix_elements::NTuple{length(base_states_comb),ComplexF64} = (
(
_pert_compton_matrix_element_single(
in_electron_mom,
in_el,
in_photon_mom,
in_ph,
out_electron_mom,
out_el,
out_photon_mom,
out_ph,
) for (in_el, in_ph, out_el, out_ph) in base_states_comb
)...,
)

return matrix_elements
Expand Down
3 changes: 2 additions & 1 deletion test/gpu/process_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ RNG = Random.MersenneTwister(573)
@test all(
tuple_isapprox.(
Vector(QEDbase._matrix_element.(gpupsps)),
QEDbase._matrix_element.(psps),
QEDbase._matrix_element.(psps);
rtol=sqrt(eps(Float64)),
),
)

Expand Down

0 comments on commit de4fd09

Please sign in to comment.