specfem::periodic_tasks::wavefield_reader¶
-
template<specfem::element::dimension_tag DimensionTag, template<typename OpType> class IOLibrary>
class wavefield_reader : public specfem::periodic_tasks::periodic_task<DimensionTag>¶ Periodic task to read wavefield data during simulation.
- Template Parameters:
IOLibrary – Template for the I/O library to use for reading
Public Functions
-
inline virtual void run(specfem::assembly::assembly<DimensionTag> &assembly, const int istep) override¶
Read wavefield data from file.
-
inline virtual void initialize(specfem::assembly::assembly<DimensionTag> &assembly) override¶
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