Skip to content

Commit

Permalink
Fixed CreateChargeGetters[]
Browse files Browse the repository at this point in the history
  • Loading branch information
iolojz committed Jan 21, 2017
1 parent a7aa4ec commit 5835c31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meta/EDM.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ If you add new kinds of vertices (e.g for new diagram types):

CreateChargeGetters[particles_List] :=
StringJoin @ Riffle[
Module[{photonVertexParticles, particleDim = TreeMasses`GetDimension[#]},
(Module[{photonVertexParticles, particleDim = TreeMasses`GetDimension[#]},
photonVertexParticles = {GetPhoton[], #, AntiParticle[#]};
"template<>\n" <>
"double charge<" <> ParticleToCXXName[#] <>
"double charge<" <> ParticleToCXXName[#] <> ">" <>
If[particleDim === 1, "(",
"( unsigned index, "] <> "EvaluationContext& context)\n{\n" <>
IndentText[
Expand All @@ -113,7 +113,7 @@ If you add new kinds of vertices (e.g for new diagram types):
] <>
"return VF::vertex(indices, context).left().real();"
] <> "\n}"
],
] &) /@ particles,
"\n\n"]

CreateDiagrams[] :=
Expand Down

0 comments on commit 5835c31

Please sign in to comment.