specfem::runtime_configuration::sources

class sources

Class to read and manage source configuration.

Parses the “sources” node from specfem_config.yaml and produces a list of source file entries with their formats. Supports both the old scalar format (bare path to a YAML file) and the new map format with explicit format keys.

Old format (backward compatible):

sources: "path/to/sources.yaml"

New format:

sources:
  YAML: sources.yaml
  CMTSOLUTION:
    - CMTSOLUTION_event1
    - CMTSOLUTION_event2

Public Functions

inline const std::vector<specfem::enums::source_file_entry> &get_source_entries() const

Get the parsed source file entries.

Returns:

const reference to vector of source_file_entry