Updated all the functions to handle the new diff tensor data structure.
Authored by: bugman 2007-11-25
Parent: [r3943]
Child: [r3945]