specfem::compute::impl::compute_source_interaction

template<int NGLL, typename Tags>
void specfem::compute::impl::compute_source_interaction(specfem::assembly::assembly<Tags::dimension_tag> &assembly, const int istep)

Compute the source interaction for the given medium.

This function computes the source interaction for the specified medium type and properties. It is specialized for different dimension tags, medium tags, property tags, and boundary tags.

Template Parameters:
  • DimensionTag – Spatial dimension (2D/3D)

  • WavefieldType – Simulation wavefield type (e.g., forward, adjoint, backward)

  • NGLL – Number of GLL points

  • MediumTag – Medium type (e.g., elastic, acoustic)

  • PropertyTag – Material property type (e.g., isotropic, anisotropic)

  • BoundaryTag – Boundary condition type (e.g., free_surface, absorbing)

Parameters:
  • assembly – SPECFEM++ assembly object.

  • timestep – Time step for which the source interaction is computed