Make the simulation repeat until target temperature is reached