Fix for the calc_tensor_diag() function.
The algorithm for finding Ayy was broken.
Authored by: bugman 2009-03-02
Parent: [r8893]
Child: [r8895]