Skip to content

Commit 9a4ca81

Browse files
authored
Merge pull request #6753 from bangerth/serialize-manager-objects
Also serialize all plugin manager objects.
2 parents 3bb3cad + ecd2403 commit 9a4ca81

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/simulator/checkpoint_restart.cc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,27 @@ namespace aspect
610610

611611
ar &statistics;
612612

613+
// Serialize various plugin systems. In many cases, plugins are stateless and
614+
// serialization will not do anything. But some are stateful (for example the
615+
// dynamic core boundary temperature plugin) and need to be serialized.
616+
ar &mesh_refinement_manager;
617+
ar &heating_model_manager;
613618
ar &postprocess_manager;
619+
ar &boundary_temperature_manager;
620+
ar &boundary_convective_heating_manager;
621+
ar &boundary_composition_manager;
622+
ar &prescribed_solution_manager;
623+
ar &boundary_velocity_manager;
624+
ar &boundary_traction_manager;
625+
626+
// The following two are not manager classes but straight up plugins and so don't
627+
// currently have the ability to serialize themselves. We should add those later.
628+
// ar &prescribed_stokes_solution;
629+
// 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
614634

615635
if (parameters.mesh_deformation_enabled)
616636
ar &(*mesh_deformation);

0 commit comments

Comments
 (0)