specfem::periodic_tasks::check_signal¶
-
template<specfem::dimension::type DimensionTag>
class check_signal : public specfem::periodic_tasks::periodic_task<DimensionTag>¶ Signal checker class for handling interrupts during simulation.
Public Functions
-
inline virtual void initialize(specfem::assembly::assembly<DimensionTag> &assembly)¶
Functions to be called once at the beginning and once at the end of the simulation.
-
inline bool should_run(const int istep)¶
Returns true if the data should be plotted at the current timestep. Updates the internal timestep counter.
- Parameters:
istep – Current timestep
- Returns:
true if the data should be plotted at the current timestep
-
inline virtual void initialize(specfem::assembly::assembly<DimensionTag> &assembly)¶