SST  14.0.0
StructuralSimulationToolkit
checkpointAction.h
1 // Copyright 2009-2024 NTESS. Under the terms
2 // of Contract DE-NA0003525 with NTESS, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2024, NTESS
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 
12 #ifndef SST_CORE_CHECKPOINT_ACTION_H
13 #define SST_CORE_CHECKPOINT_ACTION_H
14 
15 #include "sst/core/action.h"
16 #include "sst/core/config.h"
17 #include "sst/core/cputimer.h"
18 #include "sst/core/output.h"
19 #include "sst/core/sst_types.h"
20 
21 #include <set>
22 
23 namespace SST {
24 
25 class Simulation_impl;
26 class TimeConverter;
27 
28 /**
29  \class CheckpointAction
30  A recurring event to trigger checkpoint generation
31 */
32 class CheckpointAction : public Action
33 {
34 public:
35  /**
36  Create a new checkpoint object for the simulation core to initiate checkpoints
37  */
38  CheckpointAction(Config* cfg, int this_rank, Simulation_impl* sim, TimeConverter* period);
40 
41  NotSerializable(SST::CheckpointAction) // Going to have to fix this
42 
43  private :
44 
46  {}
48 
49  void operator=(CheckpointAction const&);
50  void execute(void) override;
51  int rank;
52  TimeConverter* m_period;
53  double lastTime;
54 };
55 
56 } // namespace SST
57 
58 #endif // SST_CORE_CHECKPOINT_ACTION_H
An Action is a schedulable Activity which is not an Event.
Definition: action.h:26
Class to contain SST Simulation Configuration variables.
Definition: config.h:38
A class to convert between a component&#39;s view of time and the core&#39;s view of time.
Definition: timeConverter.h:27
A recurring event to trigger checkpoint generation.
Definition: checkpointAction.h:32
Definition: action.cc:18
Main control class for a SST Simulation.
Definition: simulation_impl.h:70
CheckpointAction(Config *cfg, int this_rank, Simulation_impl *sim, TimeConverter *period)
Create a new checkpoint object for the simulation core to initiate checkpoints
void execute(void) override
Function which will be called when the time for this Activity comes to pass.
Definition: checkpointAction.cc:43