Fix abc test value

This commit is contained in:
Anton Reinhard 2023-09-26 10:23:30 +02:00
parent c88898a502
commit cc05cae1cd
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ Return the square of the particle's momentum as a `Float` value.
Takes 7 effective FLOP.
"""
function square(p::Particle)
return getMass(p.momentum)
return getMass2(p.momentum)
end
"""

View File

@ -21,7 +21,7 @@ include("../examples/profiling_utilities.jl")
],
))
expected_result = 7.594784103424603e-5
expected_result = 5.5320505145845555e-5
@testset "AB->AB no optimization" begin
for _ in 1:10 # test in a loop because graph layout should not change the result