Skip to content

Commit

Permalink
adding helper function to check if an output parameter is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Apr 18, 2015
1 parent 2fd879e commit f8d1551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meta/Parameters.m
Expand Up @@ -35,6 +35,7 @@
IsRealExpression::usage="";
IsMatrix::usage="returns true if parameter is a matrix";
IsSymmetricMatrixParameter::usage="returns true if parameter is a matrix";
IsOutputParameter::usage="returns true if parameter is a defined output parameter";

SetInputParameters::usage="";
SetModelParameters::usage="";
Expand Down Expand Up @@ -242,6 +243,9 @@

IsRealExpression[otherwise_] := False;

IsOutputParameter[lst_List] := And @@ (IsOutputParameter /@ lst);
IsOutputParameter[sym_] := MemberQ[GetOutputParameters[],sym];

HasPhase[particle_] :=
MemberQ[#[[1]]& /@ SARAH`ParticlePhases, particle];

Expand Down

0 comments on commit f8d1551

Please sign in to comment.