CFG_var_t Derived Type

type, private :: CFG_var_t

The type of a configuration variable


Inherited by

type~~cfg_var_t~~InheritedByGraph type~cfg_var_t CFG_var_t type~cfg_t CFG_t type~cfg_t->type~cfg_var_t vars

Components

Type Visibility Attributes Name Initial
character(len=CFG_string_len), private, allocatable :: char_data(:)
character(len=CFG_string_len), private :: description

Description of variable

logical, private :: dynamic_size

Whether the variable size is flexible

integer, private, allocatable :: int_data(:)
logical, private, allocatable :: logic_data(:)
real(kind=dp), private, allocatable :: real_data(:)
character(len=CFG_string_len), private :: stored_data

Data that has been read in for this variable

logical, private :: used

Whether the variable's value has been requested

character(len=CFG_name_len), private :: var_name

Name of the variable

integer, private :: var_size

Size of variable, 1 means scalar, > 1 means array

integer, private :: var_type

Type of variable


Source Code

  type CFG_var_t
     private
     !> Name of the variable
     character(len=CFG_name_len)   :: var_name
     !> Description of variable
     character(len=CFG_string_len) :: description
     !> Type of variable
     integer                       :: var_type
     !> Size of variable, 1 means scalar, > 1 means array
     integer                       :: var_size
     !> Whether the variable size is flexible
     logical                       :: dynamic_size
     !> Whether the variable's value has been requested
     logical                       :: used
     !> Data that has been read in for this variable
     character(len=CFG_string_len) :: stored_data

     ! These are the arrays used for storage. In the future, a "pointer" based
     ! approach could be used.
     real(dp), allocatable                      :: real_data(:)
     integer, allocatable                       :: int_data(:)
     character(len=CFG_string_len), allocatable :: char_data(:)
     logical, allocatable                       :: logic_data(:)
  end type CFG_var_t