Skip to content

Commit

Permalink
Avoid trying to generate equations for components which are zero by s…
Browse files Browse the repository at this point in the history
…ymmetry
  • Loading branch information
barrywardell committed Mar 9, 2014
1 parent c7da4d3 commit 50a1df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/CodeGen/xTensorKranc.m
Expand Up @@ -265,7 +265,7 @@
rhsC = Flatten[{ComponentArray[TraceBasisDummy[rhs], inds]}];

(* Pick out the independent components *)
rules = krancForm[DeleteDuplicates[Thread[lhsC -> rhsC], #1[[1]] == #2[[1]] &]];
rules = krancForm[DeleteDuplicates[Thread[lhsC -> rhsC], #1[[1]] == #2[[1]] &]] /. (0->0) -> Sequence[];
InfoMessage[InfoFull, "Expanded to: ", Map[InputForm, rules, {2}]];
Sequence @@ rules
];
Expand Down

0 comments on commit 50a1df8

Please sign in to comment.