Coupled velocity and temperature fields: the ice-sheet problem