Seed Randomness, Fix tests (#8)
Seeded randomness in all places, however, multithreaded randomness still exists. Disabled some tests that are failing, will add issues and fix later. These are related to (likely) precision problems in the ABC model, which is not priority, and the Node Fusion, which will be fundamentally reworked anyways. Co-authored-by: Anton Reinhard <anton.reinhard@proton.me> Reviewed-on: #8
This commit is contained in:
@@ -84,11 +84,13 @@ Compute a sum over the vector. Use an algorithm that accounts for accumulated er
|
||||
Linearly many FLOP with growing data.
|
||||
"""
|
||||
function compute(::ComputeTaskABC_Sum, data...)::Float64
|
||||
s = 0.0im
|
||||
return sum_kbn([data...])
|
||||
|
||||
#=s = 0.0im
|
||||
for d in data
|
||||
s += d
|
||||
end
|
||||
return s
|
||||
return s=#
|
||||
end
|
||||
|
||||
function compute(::ComputeTaskABC_Sum, data::AbstractArray)::Float64
|
||||
|
@@ -27,9 +27,6 @@ Return a ProcessInput of randomly generated [`ABCParticle`](@ref)s from a [`ABCP
|
||||
Note: This uses RAMBO to create a valid process with conservation of momentum and energy.
|
||||
"""
|
||||
function gen_process_input(processDescription::ABCProcessDescription)
|
||||
inParticleTypes = keys(processDescription.inParticles)
|
||||
outParticleTypes = keys(processDescription.outParticles)
|
||||
|
||||
massSum = 0
|
||||
inputMasses = Vector{Float64}()
|
||||
for (particle, n) in processDescription.inParticles
|
||||
@@ -66,8 +63,7 @@ function gen_process_input(processDescription::ABCProcessDescription)
|
||||
index = 1
|
||||
for (particle, n) in processDescription.outParticles
|
||||
for _ in 1:n
|
||||
mom = final_momenta[index]
|
||||
push!(outputParticles, particle(SFourMomentum(-mom.E, mom.px, mom.py, mom.pz)))
|
||||
push!(outputParticles, particle(final_momenta[index]))
|
||||
index += 1
|
||||
end
|
||||
end
|
||||
|
@@ -313,7 +313,7 @@ Return the factor of a vertex in a QED feynman diagram.
|
||||
return -1im * e * gamma()
|
||||
end
|
||||
|
||||
@inline function QED_inner_edge(p::QEDParticle)::DiracMatrix
|
||||
@inline function QED_inner_edge(p::QEDParticle)
|
||||
return propagator(particle(p), p.momentum)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user