Skip to content

Commit

Permalink
omit index on tadpole function call if only one Higgs exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander authored and Expander committed Aug 21, 2014
1 parent a02ca2d commit 0b7128a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions meta/SelfEnergies.m
Expand Up @@ -467,9 +467,14 @@
field = higgsAndIdx[[v,1]];
idx = higgsAndIdx[[v,2]];
functionName = CreateTadpoleFunctionName[field];
body = body <> arrayName <> "[" <> ToString[v-1] <> "] -= " <>
"Re(model->" <> functionName <>
"(" <> ToString[idx - 1] <> "));\n";
If[Length[higgsAndIdx] == 1,
body = body <> arrayName <> "[" <> ToString[v-1] <> "] -= " <>
"Re(model->" <> functionName <> "());\n";
,
body = body <> arrayName <> "[" <> ToString[v-1] <> "] -= " <>
"Re(model->" <> functionName <>
"(" <> ToString[idx - 1] <> "));\n";
];
];
Return[IndentText[body]];
];
Expand Down

0 comments on commit 0b7128a

Please sign in to comment.