fix c2e7beaf

I turns out the commit that c2e7beaf caused the code to always refine
after the first timestep because 0%n==0. Now we only output after
timestep 0 if adaptive_refinement_interval == 1.