Add computation of energy and damping in llg odes