nt: total number of time steps between initial and final time