Formatting of time points.
The formatters alllow the specification of how time-stamps for given time objects are to be formatted.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=8), | private, | parameter | :: | default_form | = | '(EN12.3)' |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(tem_timeformatter_type), | intent(in) | :: | formatter | |||
| type(tem_time_type), | intent(in) | :: | time |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=labelLen), | public | :: | timeform | = | default_form | ||
| procedure(timestamp), | public, | pointer, pass(formatter) | :: | stamp | => | null() |
Reading a timeformatter description from a Lua script given by conf.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in), | optional | :: | timeform | ||
| procedure(timestamp), | optional | :: | stamp |
Generate a time stamp from the simulation time in the given time definition.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(tem_timeformatter_type), | intent(in) | :: | formatter |
Formatting object to generate the time stamp |
||
| type(tem_time_type), | intent(in) | :: | time |
Time definition to create the stamp off. |
String representation of the given simulation time.
Generate a time stamp from the iteration in the given time definition.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(tem_timeformatter_type), | intent(in) | :: | formatter |
Formatting object to generate the time stamp |
||
| type(tem_time_type), | intent(in) | :: | time |
Time definition to create the stamp off. |
String representation of the given simulation time.
Reading a timeformatter description from a Lua script given by conf.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(tem_timeformatter_type), | intent(out) | :: | me |
Time to be read from the Lua script |
||
| type(flu_State), | intent(inout) | :: | conf |
Handle to the Lua script. |
||
| character(len=*), | intent(in), | optional | :: | key |
Name of the table containing the time definition. Default: 'time'. |
|
| integer, | intent(in), | optional | :: | parent |
Handle to the parent table. |
|
| logical, | intent(in), | optional | :: | use_iter_default |
Default for the use_iter setting |