Skip to content

Commit

Permalink
no need to initialize complex variables to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Oct 4, 2015
1 parent 69aa193 commit f54c6ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions meta/GMuonMinus2.m
Expand Up @@ -574,8 +574,7 @@ If you add new kinds of vertices (e.g for new diagram types):
"LeftAndRightComponentedVertex",
exprL = SARAH`Cp[Sequence @@ indexedParticles][SARAH`PL] /. vertexRules;
exprR = SARAH`Cp[Sequence @@ indexedParticles][SARAH`PR] /. vertexRules;
"std::complex<double> left = 0.0;\n" <>
"std::complex<double> right = 0.0;\n\n" <>
"std::complex<double> left, right;\n\n" <>
declareIndices <>
Parameters`CreateLocalConstRefs[exprL + exprR] <> "\n" <>
VertexExpressionToString[exprL, "left"] <> "\n" <>
Expand Down

0 comments on commit f54c6ad

Please sign in to comment.