aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-01-23 17:05:58 -0600
committerIan Hinder <ian.hinder@aei.mpg.de>2012-01-23 17:05:58 -0600
commitd95d5ec1abd05d4eb8273382befd6116c79f650d (patch)
tree329119e50919098f8b3c28a24b6ba01e4e6c0d35 /Tools/CodeGen
parent57cd9fb7cab2e2d47770aa0a7fcf94ba3a1c84c0 (diff)
Thorn.m: Eliminate duplicate reflection symmetry entries
These can appear when using tensors with index symmetries.
Diffstat (limited to 'Tools/CodeGen')
-rw-r--r--Tools/CodeGen/Thorn.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/CodeGen/Thorn.m b/Tools/CodeGen/Thorn.m
index 429f21b..c5e7e42 100644
--- a/Tools/CodeGen/Thorn.m
+++ b/Tools/CodeGen/Thorn.m
@@ -613,7 +613,7 @@ CreateSymmetriesRegistrationSource[thornName_, implementationName_, GFs_, reflec
spec = Table[{FullName -> implementationName <> "::" <> ToString@GFs[[j]],
Sym -> If[reflectionSymmetries === False,
calcSymmetry[GFs[[j]]],
- calcSymmetry[GFs[[j]], reflectionSymmetries]]}, {j, 1, Length@GFs}];
+ calcSymmetry[GFs[[j]], Union@reflectionSymmetries]]}, {j, 1, Length@GFs}];
tmp = {whoWhen["C"],