Skip to content

Commit e8f19c4

Browse files
authored
Merge pull request #6777 from bangerth/serialize
Talk about serializing initial conditions.
2 parents ee69088 + e441fbf commit e8f19c4

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

source/simulator/checkpoint_restart.cc

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -623,14 +623,22 @@ namespace aspect
623623
ar &boundary_velocity_manager;
624624
ar &boundary_traction_manager;
625625

626-
// The following two are not manager classes but straight up plugins and so don't
626+
// The following are not manager classes but straight up plugins and so don't
627627
// currently have the ability to serialize themselves. We should add those later.
628628
// ar &prescribed_stokes_solution;
629629
// ar &boundary_heat_flux;
630-
631-
// By definition, a checkpoint is past the first time step. As a consequence,
632-
// the Simulator object will not need the initial conditions objects, and
633-
// we do not need to serialize those
630+
// ar &(*adiabatic_conditions);
631+
// ar &(*initial_topography_model);
632+
633+
// Also, the following two are objects that are documented to be destroyed
634+
// after the first time step. One can argue that consequently they are
635+
// not needed any more anyway after we read a checkpoint (which is always
636+
// *after* a time step, i.e., not during the initial time step). But,
637+
// the documentation also says that *other* objects may keep a pointer
638+
// to them around -- we wouldn't know that here, and so we can't serialize
639+
// these objects here:
640+
// ar &(*initial_temperature_manager);
641+
// ar &(*initial_composition_manager);
634642

635643
if (parameters.mesh_deformation_enabled)
636644
ar &(*mesh_deformation);

0 commit comments

Comments
 (0)