Skip to content

Commit

Permalink
rename internal function to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed May 5, 2017
1 parent f595445 commit 489f67e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meta/SelfEnergies.m
Expand Up @@ -232,13 +232,13 @@
Return[result /. SARAH`Mass -> FlexibleSUSY`M];
];

GetParticleIndices[Cp[a__]] := Flatten[Cases[{a}, List[__], Infinity]];
GetParticleIndicesInCoupling[Cp[a__]] := Flatten[Cases[{a}, List[__], Infinity]];

GetParticleIndices[Cp[a__][_]] := GetParticleIndices[Cp[a]];
GetParticleIndicesInCoupling[Cp[a__][_]] := GetParticleIndicesInCoupling[Cp[a]];

CreateCouplingSymbol[coupling_] :=
Module[{symbol, indices},
indices = GetParticleIndices[coupling];
indices = GetParticleIndicesInCoupling[coupling];
symbol = ToValidCSymbol[coupling /. a_[List[__]] :> a];
symbol[Sequence @@ indices]
];
Expand All @@ -265,7 +265,7 @@
Module[{symbol, prototype = "", definition = "",
indices = {}, body = "", cFunctionName = "", i,
type, typeStr, initalValue},
indices = GetParticleIndices[coupling];
indices = GetParticleIndicesInCoupling[coupling];
symbol = CreateCouplingSymbol[coupling];
cFunctionName = ToValidCSymbolString[GetHead[symbol]];
cFunctionName = cFunctionName <> "(";
Expand Down

0 comments on commit 489f67e

Please sign in to comment.