13 character(len=std_len) :: physics_type
15 character(len=std_len),
allocatable :: keys(:)
16 logical,
allocatable :: values(:)
25 character(len=*),
intent(in) :: key
26 logical,
intent(in) :: val
28 character(len=std_len),
allocatable :: new_keys(:)
29 logical,
allocatable :: new_values(:)
35 if (trim(
d%keys(i)) == trim(key))
then
42 if (.not.
allocated(
d%keys))
then
51 allocate(new_keys(
d%n+1))
52 allocate(new_values(
d%n+1))
54 new_keys(1:
d%n) =
d%keys
55 new_values(1:
d%n) =
d%values
57 new_keys(
d%n+1) = trim(key)
58 new_values(
d%n+1) = val
60 call move_alloc(new_keys,
d%keys)
61 call move_alloc(new_values,
d%values)
70 character(len=*),
intent(in) :: key
76 if (trim(
d%keys(i)) == trim(key))
then
This module contains definitions of global parameters and variables and some generic functions/subrou...
double precision, dimension(:), allocatable, parameter d
Quick module that mimics the behaviour of python dictionaries for passing attributes around without e...
logical function, public get_dict_flag(d, key)
subroutine, public set_dict_flag(d, key, val)