These lines should output the initial grid structure. Moving them to a later time means that they execute after regrid operations that may happen during initial data setup, i.e. they would not output the initial grid structure any more. Since each regrid operation also outputs the new grid structure (depending on parameter settings), these lines would then be superfluous.
Currently, whenever a simulation recovers from a checkpoint, the grid structure file always starts with iteration 0, before jumping to the actual current iteration. This causes trouble for visualizing grid structures. In order to avoid this, the relevant lines could stay where they are, but be put inside an if-statement to prevent reprinting after recovery. How does that sound?