specfem::periodic_tasks::wavefield_writer

template<specfem::dimension::type DimensionTag, template<typename OpType> class IOLibrary>
class wavefield_writer : public specfem::periodic_tasks::periodic_task<DimensionTag>

Periodic task to write wavefield data during simulation.

Template Parameters:

IOLibrary – Template for the I/O library to use for writing

Public Functions

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

Write wavefield data to file.

inline virtual void initialize(specfem::assembly::assembly<DimensionTag> &assembly) override

Write coordinates of wavefield data to disk.

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