Heating or cooling the reactor