aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2011-11-28 23:31:09 +0100
committerIan Hinder <ian.hinder@aei.mpg.de>2011-11-29 00:02:06 +0100
commite9f96ca1a999fcbeabab7bceb8bda4574585d777 (patch)
treee3a8ef1cf88a1b2f18004b31dc0a2548b04ab5aa /Tools
parentb1dbef9ceeeb5589e8844fc7a0287b601f01ceca (diff)
TensorTools.m: Correct error message for mismatched indices
Diffstat (limited to 'Tools')
-rw-r--r--Tools/CodeGen/TensorTools.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/CodeGen/TensorTools.m b/Tools/CodeGen/TensorTools.m
index 43ebbce..7b623f5 100644
--- a/Tools/CodeGen/TensorTools.m
+++ b/Tools/CodeGen/TensorTools.m
@@ -272,7 +272,7 @@ DefineTensor[T_] :=
(* else *)
If[!charactersMatch[c,TensorCharacter[T]],
ThrowError["Tensor indices in "<>ToString[Tensor[T,is],OutputForm]<>
- " do not match those used previously: "<>ToString[T]<>"["<>StringJoin[Riffle[c,","]]<>"]"]]];
+ " do not match those used previously: "<>ToString[T]<>"["<>StringJoin[Riffle[TensorCharacter[T],","]]<>"]"]]];
Tensor[T, is]];