Formatting

This commit is contained in:
Anton Reinhard 2023-11-13 12:17:09 +01:00
parent 69c0a0faf2
commit 9e47a2f036
2 changed files with 6 additions and 2 deletions

View File

@ -102,7 +102,7 @@ function get_compute_function(graph::DAG, process::AbstractProcessDescription, m
expr = Meta.parse(
"function compute_$(functionId)(input::AbstractProcessInput) $initCaches; $assignInputs; $code; return $resSym; end",
)
func = eval(expr)
return func

View File

@ -29,7 +29,11 @@ Compute a vertex. Preserve momentum and particle types (AB->C etc.) to create re
6 FLOP.
"""
function compute(::ComputeTaskV, data1::ParticleValue{P1}, data2::ParticleValue{P2})::ParticleValue where {P1 <: ABCParticle, P2 <: ABCParticle}
function compute(
::ComputeTaskV,
data1::ParticleValue{P1},
data2::ParticleValue{P2},
)::ParticleValue where {P1 <: ABCParticle, P2 <: ABCParticle}
p3 = preserve_momentum(data1.p, data2.p)
dataOut = ParticleValue(p3, data1.v * vertex() * data2.v)
return dataOut