parse_sourcesMod Module

routine to parse the source table from the input Toml file.



Subroutines

public subroutine parse_source(table, packet, dict, spectrum, context, error)

Parse sources any updates here MUST be reflected in docs/config.md

Arguments

Type IntentOptional Attributes Name
type(toml_table), intent(inout) :: table

Input Toml table

type(photon), intent(out) :: packet

Photon packet. Used to store information to save computation

type(toml_table), intent(inout) :: dict

Dictonary used to store metadata

type(spectrum_t), intent(out) :: spectrum

Spectrum type.

type(toml_context) :: context

Context handle for error reporting

type(toml_error), intent(out), allocatable :: error

Error message