Skip to content

Commit

Permalink
Only use characters for indices which aren't used elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
barrywardell committed Mar 6, 2014
1 parent 726844f commit 85c8df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/CodeGen/xTensorKranc.m
Expand Up @@ -31,7 +31,7 @@
Euc::usage = "Euc[i, j] represents the Euclidean tensor which is 1 if i=j, and 0 otherwise.";
Eps::usage = "Eps[i, j, k] represents the Levi-Civita alternating tensor";

$KrancIndices = Symbol /@ CharacterRange["a", "q"];
$KrancIndices = Symbol /@ Complement[CharacterRange["a", "z"], {"h", "r", "x", "y", "z"}];
Do[
Evaluate[Symbol["l"<>ToString[ind]]] = -ind;
Evaluate[Symbol["u"<>ToString[ind]]] = ind;
Expand Down

0 comments on commit 85c8df8

Please sign in to comment.