Skip to content

Commit

Permalink
Export function testing for extra parameters
Browse files Browse the repository at this point in the history
and correct list structure for extra parameters
  • Loading branch information
Dylan Harries committed Dec 7, 2016
1 parent f20551d commit f9aff21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meta/Parameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@
IsSymmetricMatrixParameter::usage="returns true if parameter is a matrix";
IsTensor::usage="returns true if parameter is a matrix";
IsModelParameter::usage="returns True if parameter is a model parameter";
IsInputParameter::usage="returns False if parameter is an input parameter";
IsInputParameter::usage="returns True if parameter is an input parameter";
IsOutputParameter::usage="returns True if parameter is a defined output parameter";
IsIndex::usage="returns true if given symbol is an index";
IsPhase::usage="returns True if given symbol is a phase";
IsExtraParameter::usage="return True if parameter is an auxiliary parameter";

GetIndices::usage="returns list of indices from a given parameter";

Expand Down Expand Up @@ -552,7 +553,7 @@
Cases[GetInputParametersAndTypes[], {sym, _, type_} :> type][[1]];

GetType[sym_?IsExtraParameter] :=
Cases[GetExtraParametersAndTypes[], {sym, _, type_} :> type][[1]];
Cases[GetExtraParametersAndTypes[], {sym, type_} :> type][[1]];

GetType[sym_] :=
GetTypeFromDimension[sym, SARAH`getDimParameters[sym]];
Expand Down

0 comments on commit f9aff21

Please sign in to comment.