Hi JJ,
I played around with your example a little bit, and now I guess the
problem is that in the expression
ContractMetric[VarD[g[a, b], PD][%]/Sqrt[-Detg[]]]
you have PD derivatives with upper indices. It seems that ToCanonical
gives errors when this happens. I don't think that this is a bug.
You can apply SeparateMetric[] before ToCanonical (since you apply
ContractMetric, you probably don't want this).
You can also give ContractMetric the option not to use upper
derivative indices
SetOptions[ContractMetric, AllowUpperDerivatives -> False];
e.g. in the beginning of your calculation.
Best,
RR
On Jun 9, 6:05 pm, jjlvillarejo <
juan.jose.lopez.villar...@gmail.com>
wrote: