Return a new (initiliazed) section instance.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character, | intent(in), | optional | :: | section_name | Option name. |
New (initiliazed) section instance.
elemental function new_section(section_name)
!< Return a new (initiliazed) section instance.
character(*), intent(in), optional :: section_name !< Option name.
type(section) :: new_section !< New (initiliazed) section instance.
if (present(section_name)) new_section%sname = section_name
endfunction new_section