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

Unclear error message from CreateGroupFromTensor #98

Open eschnett opened 11 years ago

eschnett commented 11 years ago

I called CreateGroupFromTensor[cXt[ua]] after calling DefineTensor[cXt] and then erroneously using cXt without indices (i.e. as scalar). I then received the error message:

Exception: "CreateGroupFromTensor: Not a tensor" If[TensorIndex["a", "l"] == TensorIndex["b", "l"] == Null, name$322, name$322[indices$322]]

which is unclear. The error message should say that it is about cXt, and that cXt[ua] was not of the expected tensor kind.