Skip to content

Commit

Permalink
Replace indices for extra parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Dec 12, 2016
1 parent 41fe218 commit c6f8557
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meta/FlexibleSUSY.m
Original file line number Diff line number Diff line change
Expand Up @@ -2135,6 +2135,7 @@ corresponding tadpole is real or imaginary (only in models with CP
allIntermediateOutputParametes = {},
allIntermediateOutputParameterIndexReplacementRules = {},
allInputParameterIndexReplacementRules = {},
allExtraParameterIndexReplacementRules = {},
allParticles, allParameters,
freePhases = {}, ewsbSolution = {},
fixedParameters,
Expand Down Expand Up @@ -2420,10 +2421,16 @@ corresponding tadpole is real or imaginary (only in models with CP
FlexibleSUSY`FSAuxiliaryParameters = {#[[1]], Parameters`GetRealTypeFromDimension[#[[2]]]}& /@ FlexibleSUSY`FSAuxiliaryParameters;
Parameters`SetExtraParameters[FlexibleSUSY`FSAuxiliaryParameters];

allExtraParameterIndexReplacementRules = Parameters`CreateIndexReplacementRules[
(* {parameter, type} *)
{#[[1]], #[[2]]}& /@ FlexibleSUSY`FSAuxiliaryParameters
];

(* replace all indices in the user-defined model file variables *)
EvaluateUserInput[];
ReplaceIndicesInUserInput[allIndexReplacementRules];
ReplaceIndicesInUserInput[allInputParameterIndexReplacementRules];
ReplaceIndicesInUserInput[allExtraParameterIndexReplacementRules];

(* replace LHInput[p] by pInput in the constraints *)

Expand Down

0 comments on commit c6f8557

Please sign in to comment.