aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/TensorTools.m
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-08-04 12:07:25 -0500
committerIan Hinder <ian.hinder@aei.mpg.de>2009-04-27 21:48:44 +0200
commitf29fad1ac38b99c37416dd96fd8e1449d1c0b77f (patch)
tree8abf314498adc969d84a31b1dd0f91827838a472 /Tools/CodeGen/TensorTools.m
parent4c2116d9271c337418ed7ae15f535e73de6bb234 (diff)
Use cctk_lssh instead of cctk_lsh when calculating grid function extents. This will allow future optimisations with cache-aligned memory allocations.
Correct an error in declaring local variables for partial derivatives. Don't register constrained variables, which is in general not necessary but which can use much memory. Register symmetries in the schedule group SymmetryRegister instad of at basegrid.
Diffstat (limited to 'Tools/CodeGen/TensorTools.m')
-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 589367f..1bf7c64 100644
--- a/Tools/CodeGen/TensorTools.m
+++ b/Tools/CodeGen/TensorTools.m
@@ -1255,7 +1255,7 @@ calcSymmetryOfComponent[comp_, inds_] :=
(* Get the index at the ith position as a number *)
q = ToExpression[StringTake[string, {i}]];
If[!IntegerQ[q], ThrowError["calcSymmetryOfComponent: Expecting a numeric index at position "
- <> ToString[i] <> " in \"" <> string <> "\"."]];
+ <> ToString[i] <> " in \"" <> string <> "\": \"" <> ToString[q] <> "\"."]];
sym[[q]] = -sym[[q]],