@@ -18,6 +18,7 @@ module mapl3g_StatisticsGridComp
1818 use mapl_OS
1919 use mapl3g_Utilities, only: MAPL_GetCheckpointSubdir
2020 use mapl3g_SimpleAlarm, only: SimpleAlarm
21+ use mapl3g_ComponentSpec, only: ComponentSpec, CheckpointControls
2122
2223 implicit none (type,external )
2324 private
@@ -41,6 +42,7 @@ subroutine setServices(gridComp, rc)
4142 type (Statistics), pointer :: stats
4243 type (esmf_HConfig) :: hconfig, items_hconfig
4344 type (esmf_HConfigIter) :: iter, b, e
45+ type (CheckpointControls) :: restart_controls
4446
4547 call mapl_GridCompSetEntryPoint(gridComp, ESMF_METHOD_INITIALIZE, modify_advertise, phase_name= ' GENERIC::INIT_MODIFY_ADVERTISED' , _RC)
4648 call mapl_GridCompSetEntryPoint(gridComp, ESMF_METHOD_INITIALIZE, realize, phase_name= ' GENERIC::INIT_REALIZE' , _RC)
@@ -65,6 +67,10 @@ subroutine setServices(gridComp, rc)
6567
6668 call esmf_HConfigdestroy(items_hconfig, _RC)
6769
70+ restart_controls% bootstrap = .true.
71+ restart_controls% internal = .true.
72+ call MAPL_GridCompSet(gridcomp, restart_controls= restart_controls, _RC)
73+
6874 _RETURN(_SUCCESS)
6975 end subroutine setServices
7076
0 commit comments