specfem::periodic_tasks::plotter

template<specfem::dimension::type DimensionTag>
class plotter : public specfem::periodic_tasks::periodic_task<DimensionTag>

Base plotter class.

Public Functions

inline virtual void run(specfem::assembly::assembly<DimensionTag> &assembly, const int istep)

Function to be called periodically.

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