ianhinder / Kranc

A Mathematica package for generating code for solving time dependent partial differential equations
http://kranccode.org
GNU General Public License v2.0
29 stars 10 forks source link

Implement range checks for all parameter types #44

Open ianhinder opened 12 years ago

ianhinder commented 12 years ago

Cactus supports restricting the allowed range for user parameters. This should be made available to Kranc users. Currently, this is implemented for keyword parameters. There is an AllowedValues key in the parameter structure for this, but it only works for keyword parameters. It is also used for integer parameters when generating special-case code for finite differencing operators, but there is not currently any check that the user actually specified an allowed value.