output index of the current/most recent step.
If stepsTaken=0, outputIndex=1 means the initial conditions get written at index 1