* $T_{\text{start}}$ to an end time $T_{\text{end}}$. It also allows adjusting
* the time step size during the simulation. This class provides the necessary
* interface to be incorporated in any time-dependent simulation.
- * The usage of this class is demonstrated in step-19 and step-21.
+ * The usage of this class is demonstrated in step-19 (and step-83) as well as
+ * step-21.
*
* This class provides a number of invariants that are guaranteed to be
* true at all times.
* Write or read the data of this object to or from a stream for the purpose
* of serialization using the [BOOST serialization
* library](https://www.boost.org/doc/libs/1_74_0/libs/serialization/doc/index.html).
+ *
+ * This function is used in step-83.
*/
template <class Archive>
void
*
* For examples on how to use this class to track particles, store properties
* on particles, and let the properties on the particles influence the
- * finite-element solution see step-19, step-68, and step-70.
+ * finite-element solution see step-19, step-68, step-70, and step-83.
*/
template <int dim, int spacedim = dim>
class ParticleHandler : public Subscriptor
/**
* Serialize the contents of this class using the [BOOST serialization
* library](https://www.boost.org/doc/libs/1_74_0/libs/serialization/doc/index.html).
+ *
+ * This function is used in step-83.
*/
template <class Archive>
void
inline void
ParticleHandler<dim, spacedim>::serialize(Archive &ar, const unsigned int)
{
- // Note that we do not serialize the particle data itself. Instead we
+ // Note that we do not serialize the particle data itself (i.e., the
+ // 'particles' member variable). Instead we
// use the serialization functionality of the triangulation class, because
// this guarantees that data is immediately shipped to new processes if
// the domain is distributed differently after resuming from a checkpoint.
- ar //&particles
- &global_number_of_particles &global_max_particles_per_cell
- &next_free_particle_index;
+ //
+ // See step-83 for how to serialize ParticleHandler objects.
+ ar &global_number_of_particles &global_max_particles_per_cell
+ &next_free_particle_index;
}