Representing model error in weather and climate prediction