From 22e2db1319f045d45d19849398f90d0042a91925 Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Wed, 25 Mar 2015 13:11:49 +0100 Subject: [PATCH] simplify CreateMassCalculationFunction[] a bit --- meta/TreeMasses.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meta/TreeMasses.m b/meta/TreeMasses.m index 1749dab18..62042d4b9 100644 --- a/meta/TreeMasses.m +++ b/meta/TreeMasses.m @@ -918,9 +918,8 @@ the fundamental representation of SU(3) in SARAH. phase = Parameters`GetPhase[massESSymbol]; If[IsFermion[massESSymbol] && phase =!= Null && !IsMassless[massESSymbol], - particle = ToValidCSymbolString[FlexibleSUSY`M[massESSymbol]]; body = body <> "\n" <> "if (" <> ev <> " < 0.) {\n" <> - IndentText[particle <> " *= -1;\n" <> + IndentText[ev <> " *= -1;\n" <> CConversion`ToValidCSymbolString[phase] <> " = " <> CConversion`CreateCType[CConversion`ScalarType[complexScalarCType]] <> "(0., 1.);"] <> "\n}\n"; @@ -928,7 +927,6 @@ the fundamental representation of SU(3) in SARAH. (* check for tachyons *) If[(IsVector[massESSymbol] || IsScalar[massESSymbol]) && !IsMassless[massESSymbol], - particle = ToValidCSymbolString[massESSymbol]; body = body <> "\n" <> "if (" <> ev <> If[dim == 1, "", ".minCoeff()"] <> " < 0.)\n" <> IndentText[