ianhinder / Kranc

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

Suggest DefineCalculation[] #103

Open eschnett opened 10 years ago

eschnett commented 10 years ago

Instead of defining calculations into Mathematica variables and then listing them when a thorn is created, there should be a function DefineCalculation[] that defines a calculation. All defined calculations would be used automatically when a thorn is created. This avoids errors where one forgets to list a calculation when calling CreateKrancThorn. Such errors are difficult to detect.