![]() |
(git:ab76537)
|
objects that represent the structure of input sections and the data contained in an input section More...
Data Types | |
| type | section_type |
| represent a section of the input file More... | |
| type | section_vals_type |
| stores the values of a section More... | |
Functions/Subroutines | |
| subroutine, public | section_create (section, location, name, description, n_keywords, n_subsections, repeats, citations, deprecation_notice) |
| creates a list of keywords | |
| recursive subroutine, public | section_release (section) |
| releases the given keyword list (see doc/ReferenceCounting.html) | |
| recursive subroutine, public | section_describe (section, unit_nr, level, hide_root, recurse) |
| prints a description of the given section | |
| integer function, public | section_get_subsection_index (section, subsection_name) |
| returns the index of requested subsection (-1 if not found) | |
| type(section_type) function, pointer, public | section_get_subsection (section, subsection_name) |
| returns the requested subsection | |
| integer function, public | section_get_keyword_index (section, keyword_name) |
| returns the index of the requested keyword (or -2 if not found) | |
| recursive type(keyword_type) function, pointer, public | section_get_keyword (section, keyword_name) |
| returns the requested keyword | |
| subroutine, public | section_add_keyword (section, keyword) |
| adds a keyword to the given section | |
| subroutine, public | section_add_subsection (section, subsection) |
| adds a subsection to the given section | |
| recursive subroutine, public | section_vals_create (section_vals, section) |
| creates a object where to store the values of a section | |
| subroutine, public | section_vals_retain (section_vals) |
| retains the given section values (see doc/ReferenceCounting.html) | |
| recursive subroutine, public | section_vals_release (section_vals) |
| releases the given object | |
| subroutine, public | section_vals_get (section_vals, ref_count, n_repetition, n_subs_vals_rep, section, explicit) |
| returns various attributes about the section_vals | |
| recursive type(section_vals_type) function, pointer, public | section_vals_get_subs_vals (section_vals, subsection_name, i_rep_section, can_return_null) |
| returns the values of the requested subsection | |
| type(section_vals_type) function, pointer, public | section_vals_get_subs_vals2 (section_vals, i_section, i_rep_section) |
| returns the values of the n-th non default subsection (null if no such section exists (not so many non default section)) | |
| type(section_vals_type) function, pointer, public | section_vals_get_subs_vals3 (section_vals, subsection_name, i_rep_section) |
| returns the values of the n-th non default subsection (null if no such section exists (not so many non default section)) | |
| subroutine, public | section_vals_add_values (section_vals) |
| adds the place to store the values of a repetition of the section | |
| subroutine, public | section_vals_remove_values (section_vals) |
| removes the values of a repetition of the section | |
| real(kind=dp) function, public | section_get_rval (section_vals, keyword_name) |
| ... | |
| integer function, public | section_get_ival (section_vals, keyword_name) |
| ... | |
| integer function, dimension(:), pointer, public | section_get_ivals (section_vals, keyword_name) |
| ... | |
| logical function, public | section_get_lval (section_vals, keyword_name) |
| ... | |
| subroutine, public | section_vals_val_get (section_vals, keyword_name, i_rep_section, i_rep_val, n_rep_val, val, l_val, i_val, r_val, c_val, l_vals, i_vals, r_vals, c_vals, explicit) |
| returns the requested value | |
| subroutine, public | section_vals_list_get (section_vals, keyword_name, i_rep_section, list) |
| returns the requested list | |
| subroutine, public | section_vals_val_set (section_vals, keyword_name, i_rep_section, i_rep_val, val, l_val, i_val, r_val, c_val, l_vals_ptr, i_vals_ptr, r_vals_ptr, c_vals_ptr) |
| sets the requested value | |
| subroutine, public | section_vals_val_unset (section_vals, keyword_name, i_rep_section, i_rep_val) |
| unsets (removes) the requested value (if it is a keyword repetitions removes the repetition, so be careful: the repetition indices bigger than the actual change. | |
| recursive subroutine, public | section_vals_write (section_vals, unit_nr, hide_root, hide_defaults) |
| writes the values in the given section in a way that is suitable to the automatic parsing | |
| recursive subroutine, public | write_section_xml (section, level, unit_number) |
| writes the values in the given section in xml | |
| recursive subroutine, public | section_typo_match (section, section_name, unknown_string, location_string, matching_rank, matching_string, bonus) |
| ... | |
| subroutine, public | section_vals_set_subs_vals (section_vals, subsection_name, new_section_vals, i_rep_section) |
| replaces of the requested subsection with the one given | |
| subroutine, public | section_vals_duplicate (section_vals_in, section_vals_out, i_rep_start, i_rep_end) |
| creates a deep copy from section_vals_in to section_vals_out | |
Variables | |
| type(section_type), pointer, save, public | typo_match_section => NULL() |
| integer, dimension(n_typo_matches), public | typo_matching_rank = 0 |
| character(len=default_string_length *5), dimension(n_typo_matches), public | typo_matching_line = "" |
objects that represent the structure of input sections and the data contained in an input section
| subroutine, public input_section_types::section_create | ( | type(section_type), pointer | section, |
| character(len=*), intent(in) | location, | ||
| character(len=*), intent(in) | name, | ||
| character(len=*), intent(in) | description, | ||
| integer, intent(in), optional | n_keywords, | ||
| integer, intent(in), optional | n_subsections, | ||
| logical, intent(in), optional | repeats, | ||
| integer, dimension(:), intent(in), optional | citations, | ||
| character(len=*), intent(in), optional | deprecation_notice | ||
| ) |
creates a list of keywords
| section | the list to be created |
| location | from where in the source code section_create() is called |
| name | ... |
| description | ... |
| n_keywords | hint about the number of keywords, defaults to 10 |
| n_subsections | a hint about how many sections will be added to this structure, defaults to 0 |
| repeats | if this section can repeat (defaults to false) |
| citations | ... |
| deprecation_notice | show this warning that the section is deprecated |
Definition at line 156 of file input_section_types.F.
| recursive subroutine, public input_section_types::section_release | ( | type(section_type), pointer | section | ) |
releases the given keyword list (see doc/ReferenceCounting.html)
| section | the list to release |
Definition at line 237 of file input_section_types.F.
| recursive subroutine, public input_section_types::section_describe | ( | type(section_type), intent(in), pointer | section, |
| integer, intent(in) | unit_nr, | ||
| integer, intent(in) | level, | ||
| logical, intent(in), optional | hide_root, | ||
| integer, intent(in), optional | recurse | ||
| ) |
prints a description of the given section
| section | the section to describe |
| unit_nr | the unit to write to |
| level | the level of output: 0: just section name, 1:keywords, then see keyword_describe :-) |
| hide_root | if the name of the first section should be hidden (defaults to false). |
| recurse | ... |
Definition at line 310 of file input_section_types.F.
| integer function, public input_section_types::section_get_subsection_index | ( | type(section_type), intent(in) | section, |
| character(len=*), intent(in) | subsection_name | ||
| ) |
returns the index of requested subsection (-1 if not found)
| section | the root section |
| subsection_name | the name of the subsection you want to get |
Definition at line 379 of file input_section_types.F.
| type(section_type) function, pointer, public input_section_types::section_get_subsection | ( | type(section_type), intent(in) | section, |
| character(len=*), intent(in) | subsection_name | ||
| ) |
returns the requested subsection
| section | the root section |
| subsection_name | the name of the subsection you want to get |
Definition at line 409 of file input_section_types.F.
| integer function, public input_section_types::section_get_keyword_index | ( | type(section_type), intent(in) | section, |
| character(len=*), intent(in) | keyword_name | ||
| ) |
returns the index of the requested keyword (or -2 if not found)
| section | the section the keyword is in |
| keyword_name | the keyword you are interested in |
Definition at line 435 of file input_section_types.F.
| recursive type(keyword_type) function, pointer, public input_section_types::section_get_keyword | ( | type(section_type), intent(in) | section, |
| character(len=*), intent(in) | keyword_name | ||
| ) |
returns the requested keyword
| section | the section the keyword is in |
| keyword_name | the keyword you are interested in |
Definition at line 477 of file input_section_types.F.
| subroutine, public input_section_types::section_add_keyword | ( | type(section_type), intent(inout) | section, |
| type(keyword_type), intent(in), pointer | keyword | ||
| ) |
adds a keyword to the given section
| section | the section to which the keyword should be added |
| keyword | the keyword to add |
Definition at line 510 of file input_section_types.F.
| subroutine, public input_section_types::section_add_subsection | ( | type(section_type), intent(inout) | section, |
| type(section_type), intent(in), pointer | subsection | ||
| ) |
adds a subsection to the given section
| section | to section to which you want to add a subsection |
| subsection | the subsection to add |
Definition at line 566 of file input_section_types.F.
| recursive subroutine, public input_section_types::section_vals_create | ( | type(section_vals_type), pointer | section_vals, |
| type(section_type), pointer | section | ||
| ) |
creates a object where to store the values of a section
| section_vals | the parsed section that will be created |
| section | the structure of the section that you want to parse |
Definition at line 607 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_retain | ( | type(section_vals_type), pointer | section_vals | ) |
retains the given section values (see doc/ReferenceCounting.html)
| section_vals | the object to retain |
Definition at line 637 of file input_section_types.F.
| recursive subroutine, public input_section_types::section_vals_release | ( | type(section_vals_type), pointer | section_vals | ) |
releases the given object
| section_vals | the section_vals to release |
Definition at line 652 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_get | ( | type(section_vals_type), intent(in) | section_vals, |
| integer, intent(out), optional | ref_count, | ||
| integer, intent(out), optional | n_repetition, | ||
| integer, intent(out), optional | n_subs_vals_rep, | ||
| type(section_type), optional, pointer | section, | ||
| logical, intent(out), optional | explicit | ||
| ) |
returns various attributes about the section_vals
| section_vals | the section vals you want information from |
| ref_count | ... |
| n_repetition | number of repetitions of the section |
| n_subs_vals_rep | number of repetitions of the subsections values (max(1,n_repetition)) |
| section | ... |
| explicit | if the section was explicitly present in |
Definition at line 702 of file input_section_types.F.
| recursive type(section_vals_type) function, pointer, public input_section_types::section_vals_get_subs_vals | ( | type(section_vals_type), intent(in) | section_vals, |
| character(len=*), intent(in) | subsection_name, | ||
| integer, intent(in), optional | i_rep_section, | ||
| logical, intent(in), optional | can_return_null | ||
| ) |
returns the values of the requested subsection
| section_vals | the root section |
| subsection_name | the name of the requested subsection |
| i_rep_section | index of the repetition of section_vals from which you want to extract the subsection (defaults to 1) |
| can_return_null | if the results can be null (defaults to false) |
Definition at line 729 of file input_section_types.F.
| type(section_vals_type) function, pointer, public input_section_types::section_vals_get_subs_vals2 | ( | type(section_vals_type), pointer | section_vals, |
| integer, intent(in) | i_section, | ||
| integer, intent(in), optional | i_rep_section | ||
| ) |
returns the values of the n-th non default subsection (null if no such section exists (not so many non default section))
| section_vals | the root section |
| i_section | index of the section |
| i_rep_section | index of the repetition of section_vals from which you want to extract the subsection (defaults to 1) |
Definition at line 785 of file input_section_types.F.
| type(section_vals_type) function, pointer, public input_section_types::section_vals_get_subs_vals3 | ( | type(section_vals_type), intent(in) | section_vals, |
| character(len=*), intent(in) | subsection_name, | ||
| integer, intent(in), optional | i_rep_section | ||
| ) |
returns the values of the n-th non default subsection (null if no such section exists (not so many non default section))
| section_vals | the root section |
| subsection_name | ... |
| i_rep_section | index of the repetition of section_vals from which you want to extract the subsection (defaults to 1) |
Definition at line 822 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_add_values | ( | type(section_vals_type), intent(inout) | section_vals | ) |
adds the place to store the values of a repetition of the section
| section_vals | the section you want to extend |
Definition at line 847 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_remove_values | ( | type(section_vals_type), pointer | section_vals | ) |
removes the values of a repetition of the section
| section_vals | the section you want to extend |
Definition at line 895 of file input_section_types.F.
| real(kind=dp) function, public input_section_types::section_get_rval | ( | type(section_vals_type), intent(in) | section_vals, |
| character(len=*), intent(in) | keyword_name | ||
| ) |
...
| section_vals | ... |
| keyword_name | ... |
Definition at line 947 of file input_section_types.F.
| integer function, public input_section_types::section_get_ival | ( | type(section_vals_type), intent(in) | section_vals, |
| character(len=*), intent(in) | keyword_name | ||
| ) |
...
| section_vals | ... |
| keyword_name | ... |
Definition at line 979 of file input_section_types.F.
| integer function, dimension(:), pointer, public input_section_types::section_get_ivals | ( | type(section_vals_type), intent(in) | section_vals, |
| character(len=*), intent(in) | keyword_name | ||
| ) |
...
| section_vals | ... |
| keyword_name | ... |
Definition at line 995 of file input_section_types.F.
| logical function, public input_section_types::section_get_lval | ( | type(section_vals_type), intent(in) | section_vals, |
| character(len=*), intent(in) | keyword_name | ||
| ) |
...
| section_vals | ... |
| keyword_name | ... |
Definition at line 1011 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_val_get | ( | type(section_vals_type), intent(in), target | section_vals, |
| character(len=*), intent(in) | keyword_name, | ||
| integer, intent(in), optional | i_rep_section, | ||
| integer, intent(in), optional | i_rep_val, | ||
| integer, intent(out), optional | n_rep_val, | ||
| type(val_type), optional, pointer | val, | ||
| logical, intent(out), optional | l_val, | ||
| integer, intent(out), optional | i_val, | ||
| real(kind=dp), intent(out), optional | r_val, | ||
| character(len=*), intent(out), optional | c_val, | ||
| logical, dimension(:), optional, pointer | l_vals, | ||
| integer, dimension(:), optional, pointer | i_vals, | ||
| real(kind=dp), dimension(:), optional, pointer | r_vals, | ||
| character(len=default_string_length), dimension(:), optional, pointer | c_vals, | ||
| logical, intent(out), optional | explicit | ||
| ) |
returns the requested value
| section_vals | ... |
| keyword_name | the name of the keyword you want |
| i_rep_section | which repetition of the section you are interested in (defaults to 1) |
| i_rep_val | which repetition of the keyword/val you are interested in (defaults to 1) |
| n_rep_val | returns number of val available |
| val | ... |
| l_val,i_val,r_val,c_val | returns the logical,integer,real or character value |
| i_val | ... |
| r_val | ... |
| c_val | ... |
| l_vals,i_vals,r_vals,c_vals | returns the logical,integer,real or character arrays. The val reamins the owner of the array |
| i_vals | ... |
| r_vals | ... |
| c_vals | ... |
| explicit | ... |
Definition at line 1044 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_list_get | ( | type(section_vals_type), intent(in), pointer | section_vals, |
| character(len=*), intent(in) | keyword_name, | ||
| integer, optional | i_rep_section, | ||
| type(cp_sll_val_type), pointer | list | ||
| ) |
returns the requested list
| section_vals | ... |
| keyword_name | the name of the keyword you want |
| i_rep_section | which repetition of the section you are interested in (defaults to 1) |
| list | ... |
Definition at line 1154 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_val_set | ( | type(section_vals_type), pointer | section_vals, |
| character(len=*), intent(in) | keyword_name, | ||
| integer, intent(in), optional | i_rep_section, | ||
| integer, intent(in), optional | i_rep_val, | ||
| type(val_type), optional, pointer | val, | ||
| logical, intent(in), optional | l_val, | ||
| integer, intent(in), optional | i_val, | ||
| real(kind=dp), intent(in), optional | r_val, | ||
| character(len=*), intent(in), optional | c_val, | ||
| logical, dimension(:), optional, pointer | l_vals_ptr, | ||
| integer, dimension(:), optional, pointer | i_vals_ptr, | ||
| real(kind=dp), dimension(:), optional, pointer | r_vals_ptr, | ||
| character(len=default_string_length), dimension(:), optional, pointer | c_vals_ptr | ||
| ) |
sets the requested value
| section_vals | ... |
| keyword_name | the name of the keyword you want (can be a path separated by '') |
| i_rep_section | isection which repetition of the section you are nterested in (defaults to 1) |
| i_rep_val | which repetition of the keyword/val you are interested in (defaults to 1) |
| val | ... |
| l_val,i_val,r_val,c_val | sets the logical,integer,real or character value |
| i_val | ... |
| r_val | ... |
| c_val | ... |
| l_vals_ptr,i_vals_ptr,r_vals,c_vals | sets the logical,integer,real or character arrays. The val becomes the owner of the array |
| i_vals_ptr | ... |
| r_vals_ptr | ... |
| c_vals_ptr | ... |
Definition at line 1221 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_val_unset | ( | type(section_vals_type), pointer | section_vals, |
| character(len=*), intent(in) | keyword_name, | ||
| integer, intent(in), optional | i_rep_section, | ||
| integer, intent(in), optional | i_rep_val | ||
| ) |
unsets (removes) the requested value (if it is a keyword repetitions removes the repetition, so be careful: the repetition indices bigger than the actual change.
| section_vals | ... |
| keyword_name | the name of the keyword you want (can be a path separated by '') |
| i_rep_section | which repetition of the section you are interested in (defaults to 1) |
| i_rep_val | which repetition of the keyword/val you are interested in (defaults to 1) |
Definition at line 1353 of file input_section_types.F.
| recursive subroutine, public input_section_types::section_vals_write | ( | type(section_vals_type), intent(in) | section_vals, |
| integer, intent(in) | unit_nr, | ||
| logical, intent(in), optional | hide_root, | ||
| logical, intent(in), optional | hide_defaults | ||
| ) |
writes the values in the given section in a way that is suitable to the automatic parsing
| section_vals | the section to write out |
| unit_nr | the unit where to write to |
| hide_root | ... |
| hide_defaults | ... |
Definition at line 1425 of file input_section_types.F.
| recursive subroutine, public input_section_types::write_section_xml | ( | type(section_type), pointer | section, |
| integer, intent(in) | level, | ||
| integer, intent(in) | unit_number | ||
| ) |
writes the values in the given section in xml
| section | ... |
| level | ... |
| unit_number | ... |
Definition at line 1560 of file input_section_types.F.
| recursive subroutine, public input_section_types::section_typo_match | ( | type(section_type), intent(in), pointer | section, |
| character(len=*) | section_name, | ||
| character(len=*) | unknown_string, | ||
| character(len=*) | location_string, | ||
| integer, dimension(:), intent(inout) | matching_rank, | ||
| character(len=*), dimension(:), intent(inout) | matching_string, | ||
| integer, intent(in) | bonus | ||
| ) |
...
| section | ... |
| section_name | ... |
| unknown_string | ... |
| location_string | ... |
| matching_rank | ... |
| matching_string | ... |
| bonus | ... |
Definition at line 1638 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_set_subs_vals | ( | type(section_vals_type), pointer | section_vals, |
| character(len=*), intent(in) | subsection_name, | ||
| type(section_vals_type), pointer | new_section_vals, | ||
| integer, intent(in), optional | i_rep_section | ||
| ) |
replaces of the requested subsection with the one given
| section_vals | the root section |
| subsection_name | the name of the subsection to replace |
| new_section_vals | the new section_vals to use |
| i_rep_section | index of the repetition of section_vals of which you want to replace the subsection (defaults to 1) |
Definition at line 1703 of file input_section_types.F.
| subroutine, public input_section_types::section_vals_duplicate | ( | type(section_vals_type), pointer | section_vals_in, |
| type(section_vals_type), pointer | section_vals_out, | ||
| integer, intent(in), optional | i_rep_start, | ||
| integer, intent(in), optional | i_rep_end | ||
| ) |
creates a deep copy from section_vals_in to section_vals_out
| section_vals_in | the section_vals to copy |
| section_vals_out | the section_vals to create |
| i_rep_start | ... |
| i_rep_end | ... |
Definition at line 1756 of file input_section_types.F.
| type(section_type), pointer, save, public input_section_types::typo_match_section => NULL() |
Definition at line 135 of file input_section_types.F.
| integer, dimension(n_typo_matches), public input_section_types::typo_matching_rank = 0 |
Definition at line 137 of file input_section_types.F.
| character(len=default_string_length*5), dimension(n_typo_matches), public input_section_types::typo_matching_line = "" |
Definition at line 138 of file input_section_types.F.