and use automatic differentiation for the simulator of the non-isothermal immiscible co2 injection problem.