specfem::assembly::sources_impl::sort_sources_per_medium¶
Filter and sort sources by medium type.
Extracts sources matching the specified medium tag and returns them with their original indices for mapping.
- Template Parameters:
DimensionTag – Spatial dimension
MediumTag – Target medium type to filter
- Parameters:
sources – All sources to filter
element_types – Element classification data (unused but kept for interface consistency)
mesh – Finite element mesh (unused but kept for interface consistency)
- Returns:
Tuple of (filtered sources, original indices)