Skip to content

Commit

Permalink
set input parameters, don't treat them as fixed by the constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jul 13, 2015
1 parent ef2c3f5 commit 01f5b70
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion meta/Constraint.m
Expand Up @@ -491,7 +491,10 @@
StringJoin[CheckPerturbativityForParameter[#,thresh]& /@ pars];

GetNumberOfParameters[FlexibleSUSY`FSSolveEWSBFor[pars_List]] :=
Length[pars];
Plus @@ (BetaFunction`CountNumberOfParameters[Parameters`GetType[#]]& /@ pars);

(* don't count input parameters as fixed parameters *)
GetNumberOfParameters[{par_ /; IsInputParameter[par], _}] := 0;

GetNumberOfParameters[{FlexibleSUSY`Phase[_], _}] := 1;

Expand All @@ -504,6 +507,10 @@
CalculateNumberOfParameters[settings_List] :=
ToString[Plus @@ (GetNumberOfParameters /@ settings)];

(* simply set parameters *)
CalculateDifference[{par_ /; IsInputParameter[par], value_}, _, _, _] :=
Parameters`SetInputParameter[par, value, "INPUTPARAMETER"];

(* phases are equal if their real parts are equal *)
CalculateDifference[{p:FlexibleSUSY`Phase[_], value_}, offset_Integer, vector_String, type_] :=
vector <> "(" <> ToString[offset] <> ") = Re(" <>
Expand Down

0 comments on commit 01f5b70

Please sign in to comment.