Heating or cooling of the reactor