Skip to content

Commit

Permalink
prevent double definition of parameters in certain models (e.g. UMSSM)
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Bach committed May 22, 2017
1 parent efeb1c5 commit aa56e4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meta/SelfEnergies.m
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@
typeStr = CConversion`CreateCType[type];
prototype = typeStr <> " " <> cFunctionName <> " const;\n";
definition = typeStr <> " CLASSNAME::" <> cFunctionName <> " const\n{\n";
body = Parameters`CreateLocalConstRefsForInputParameters[expr, "LOCALINPUT"] <> "\n";
If[!inModelClass, body = body <> Parameters`CreateLocalConstRefs[expr] <> "\n";];
If[inModelClass,
body = body <> Parameters`CreateLocalConstRefsForInputParameters[expr, "LOCALINPUT"] <> "\n"];
If[!inModelClass,
body = body <> Parameters`CreateLocalConstRefs[expr] <> "\n"];
body = body <> typeStr <> " result" <> initalValue <> ";\n\n";
body = body <> TreeMasses`ExpressionToString[expr, "result"];
body = body <> "\nreturn result;\n";
Expand Down

0 comments on commit aa56e4d

Please sign in to comment.