Skip to content

Commit

Permalink
TensorTools.m: Correct redefinitions of connections
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Jun 11, 2011
1 parent 419ef7b commit c5a7356
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tools/CodeGen/TensorTools.m
Expand Up @@ -724,8 +724,7 @@
Christoffel symbol. *)
DefineConnection[cd_, pd_, gamma_] :=
Module[{},
connections = Join[connections, {{cd, pd, gamma}}]];

connections = Append[DeleteCases[connections,{cd,_,_}], {cd, pd, gamma}]];

(* Things we can do with covariant derivatives:
Expand Down

0 comments on commit c5a7356

Please sign in to comment.