Confusing output of FermionQ

Report the bugs you found
Post Reply
AlexanderVoigt
Posts: 23
Joined: 13. Apr 2016, 14:59

Confusing output of FermionQ

Post by AlexanderVoigt » 14. Oct 2019, 14:45

Dear SARAH developers,

in FlexibleSUSY we stumbled upon a confusing output of the FermionQ function:

Code: Select all

Needs["SARAH`"];
Start["SM"];

FermionQ[Fe] (* -> False *)

FermionQ[Fv] (* -> True *)
Is this a bug or are we misinterpreting the output of FermionQ?

Best regards from Flensburg
Alex

FStaub
Site Admin
Posts: 822
Joined: 13. Apr 2016, 14:05

Re: Confusing output of FermionQ

Post by FStaub » 15. Oct 2019, 19:26

Hi Alex,

I guess, somewhere in between. Without checking (because I don't have Mathematica anymore):
make sure that SA`CurrentStates is set correct at this stage (i.e. EWSB). It is usually set when calling other functions to perform some calculations, but just after running Start is might be GaugeES (and the components of Fe are not known there).

Cheers,
Florian

AlexanderVoigt
Posts: 23
Joined: 13. Apr 2016, 14:59

Re: Confusing output of FermionQ

Post by AlexanderVoigt » 16. Oct 2019, 15:43

Hi Florian,

many thanks for the hint, this was in deed the problem!

Code: Select all

Needs["SARAH`"];
Start["SM"];

?SA`CurrentStates (* -> GaugeES *)

FermionQ[Fe] (* -> False *)

FermionQ[Fv] (* -> True *)

SA`CurrentStates = SARAH`EWSB

FermionQ[Fe] (* -> True *)

FermionQ[Fv] (* -> True *)
Best regards,
Alex

Post Reply