diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-09-20 21:02:00 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-09-24 13:12:37 +0200 |
commit | 0ec76e64e744c5c4e0243626d8ec5dc0540641fa (patch) | |
tree | 28cc2140f410918b6a271ccc0e610df93c2e8ecd /Tools/CodeGen | |
parent | 8f3ae8df3e50faf13c1ef9fc40d21aab165486d5 (diff) |
TensorToolsKranc: Correct package errors
The MapLookup package was not being loaded, meaning that the lookup of the Equations in the calculation was returning unevaluated.
The CheckCalculationTensors function was not created in the public context, so when it was called from other packages, it was returning unevaluated and not performing any tensor checking.
Diffstat (limited to 'Tools/CodeGen')
-rw-r--r-- | Tools/CodeGen/TensorToolsKranc.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/CodeGen/TensorToolsKranc.m b/Tools/CodeGen/TensorToolsKranc.m index 1abda8b..54a9a13 100644 --- a/Tools/CodeGen/TensorToolsKranc.m +++ b/Tools/CodeGen/TensorToolsKranc.m @@ -22,13 +22,14 @@ (* This package provides a TensorTools wrapper for Kranc *) -BeginPackage["TensorToolsKranc`", {"Kranc`", "KrancGroups`", "TensorTools`"}]; +BeginPackage["TensorToolsKranc`", {"Kranc`", "KrancGroups`", "TensorTools`", "MapLookup`"}]; CreateGroupFromTensor::usage = ""; ReflectionSymmetries::usage = "Produce a list of reflection symmetries of a tensor."; ExpandComponents::usage = "ExpandComponents[expr] converts an expression containing abstract indices into one containing components instead." IncludeCharacter::usage = "IncludeCharacter is an option for makeExplicit which specifies whether the character should also be included in the generated variable names." TensorCharacterString::usage = "TensorCharacterString[tensor[inds]] returns a string consisting of a sequence of U's and D's representing the character of tensor." +CheckCalculationTensors; Begin["`Private`"]; |