Weak solutions to a model of climate dynamics