Hi Thomas,
Thank you for your reply.
Actually, because as far as I see, ToCaninical also contracts indices when the metric is also present in the expression.
However, in my calculation and at the stage that I want to do this reordering of dummy indices, this contraction should not be done.
The reason is that, I am dealing with a 4d manifold splitted to 3 submanifols and want to write a quantity defined in the 4d manifold in terms of some tensors defined in its submanifolds.
Since at the current stage of calculation, the metric is yet that of 4d manifold, while the indices are now the ones related to each of the 3 submanifolds (Because I have already applied the command TraceProductDummy), using ContractMetric at this stage would not give a correct result.
I know that I can use it after that I state the hole metric in terms of metrics of submanifolds , but I am trying to simplify the expression as far as it is possible at this very stage to avoid getting very long expressions in the middle parts of calculation.
.
That's why I needed a command for only renaming dummy indices.
I hope my explanation of the problem is clear now.
Thank you again.
Behnoush