afivo-streamer 1.1
1D/2D/3D streamer simulations with AMR
Loading...
Searching...
No Matches
Data Types | Modules | Functions/Subroutines | Variables
m_config.f90 File Reference

Go to the source code of this file.

Data Types

type  m_config::cfg_t
 The configuration that contains all the variables. More...
 
interface  m_config::cfg_add
 Interface to add variables to the configuration. More...
 
interface  m_config::cfg_get
 Interface to get variables from the configuration. More...
 
interface  m_config::cfg_add_get
 Interface to get variables from the configuration. More...
 

Modules

module  m_config
 Module that allows working with a configuration file.
 

Functions/Subroutines

subroutine, public m_config::cfg_update_from_arguments (cfg, ignore_unknown)
 Read command line arguments. Both files and variables can be specified, for example as: ./my_program config.cfg -n_runs=3.
 
subroutine, public m_config::cfg_update_from_line (cfg, line)
 Update the configuration by parsing a line.
 
subroutine, public m_config::cfg_read_file (cfg, filename)
 Update the variables in the configartion with the values found in 'filename'.
 
subroutine, public m_config::cfg_check (cfg)
 
subroutine, public m_config::cfg_write (cfg_in, filename, hide_unused, custom_first)
 This routine writes the current configuration to a file with descriptions.
 
subroutine, public m_config::cfg_write_markdown (cfg_in, filename, hide_unused)
 This routine writes the current configuration to a markdown file.
 
subroutine, public m_config::cfg_get_size (cfg, var_name, res)
 Get the size of a variable.
 
subroutine, public m_config::cfg_get_type (cfg, var_name, res)
 Get the type of a given variable of a configuration type.
 
subroutine, public m_config::cfg_sort (cfg)
 Sort the variables for faster lookup.
 
subroutine, public m_config::cfg_clear (cfg)
 Clear all data from a CFG_t object, so that it can be reused. Note that this also happens automatically when such an object goes out of scope.
 

Variables

integer, parameter, public m_config::cfg_integer_type = 1
 Integer type.
 
integer, parameter, public m_config::cfg_real_type = 2
 Real number type.
 
integer, parameter, public m_config::cfg_string_type = 3
 String type.
 
integer, parameter, public m_config::cfg_logic_type = 4
 Boolean/logical type.
 
character(len=10), dimension(0:cfg_num_types), parameter, public m_config::cfg_type_names = [character(len=10) :: "storage", "integer", "real", "string ", "logical"]
 Names of the types.
 
integer, parameter, public m_config::cfg_name_len = 80
 Maximum length of variable names.
 
integer, parameter, public m_config::cfg_string_len = 200
 Fixed length of string type.
 
integer, parameter, public m_config::cfg_max_line_len = 1000
 Maximum length of line containing multiple arguments/values.
 
integer, parameter, public m_config::cfg_max_array_size = 1000
 Maximum number of entries in a variable (if it's an array)