split hdf5 example into two, first writing to files per timestep, then all timesteps into one file per process.