Contains functions for creating a standard header for files and output
Constructor for standard_header_type
.
Stores the date using date_is08601
and the UUID using
simulation_run_uuid
. Note that this may involve collective
communication, so all processors should be involved in
construction.
A header for files and output.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | date_time | |||
character(len=uuid_len), | public | :: | run_uuid |
public function make_standard_header () | Constructor for |
procedure , public , :: to_string => standard_header_to_string Function |
Return the current date and time in ISO8601 format: YYYY-MM-DDThh:mm:ss.ssssZhh:mm
Constructor for standard_header_type
.
Return a multiline string with a standard header of the form:
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(standard_header_type), | intent(in) | :: | this | |||
character(len=*), | intent(in), | optional | :: | comment_character |
Optional character(s) to start each line. Whitespace is not stripped or added. Default is empty string |
|
character(len=*), | intent(in), | optional | :: | file_description |
Optional file description. Treated as a single line, that is, new lines in this string will not begin with comment_character |