Module contains parses the input toml config files. See config for details of toml input file.
parse geometry information
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(inout) | :: | table |
Input Toml table |
||
type(toml_table), | intent(inout) | :: | dict |
Dictonary used to store metadata |
||
type(toml_error), | intent(out), | allocatable | :: | error |
Error message |
parse grid input data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(inout) | :: | table |
Input Toml table |
||
type(toml_table), | intent(inout) | :: | dict |
Dictonary used to store metadata |
||
type(toml_error), | intent(out), | allocatable | :: | error |
Error message |
parse output file information
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(inout) | :: | table |
Input Toml table |
||
type(toml_error), | intent(out), | allocatable | :: | error |
Error message |
entry point for parsing toml file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename |
filename of input toml file |
||
type(photon), | intent(out) | :: | packet |
some input options set up data in the photon class |
||
type(dect_array), | intent(out), | allocatable | :: | dects(:) |
detector array which is setup during parsing |
|
type(spectrum_t), | intent(out) | :: | spectrum |
spectrum type which is set up during parsing |
||
type(toml_table), | intent(inout) | :: | dict |
dictionary that stores potential metadata to be saved with simulation output |
||
type(toml_error), | intent(out), | allocatable | :: | error |
Last error raised during parsing. Unallocated if no error raised. Need to handle this on return from parse_params. |
parse simulation information
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(inout) | :: | table |
Input Toml table |
||
type(toml_error), | intent(out), | allocatable | :: | error |
Error message |