added write_fields and write_particles to TimeTasks