A monitor object made of a collection of columns.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=16), | public | :: | FMT(4) |
Format specifiers |
|||
| type(column_obj), | public, | allocatable | :: | col(:) |
Columns |
||
| integer, | public | :: | fid |
Monitor IO unit |
|||
| character(len=monSize), | public | :: | name |
Name of the monitor file |
|||
| character(len=1), | public | :: | sep |
Column seperator |
|||
| logical, | public | :: | stdout |
Print to stdout |
Finalize a monitor object
Finalizes the object and frees memory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(monitor_obj), | intent(inout) | :: | this |
A monitor object |
Define the format specifiers
Defines how to print values. Format specifier for an integer Format specifier for a real Format specifier for a logical Format specifier for a full line
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(monitor_obj), | intent(inout) | :: | this |
A monitor object |
Intialize a monitor object
Intializes a single monitor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(monitor_obj), | intent(inout) | :: | this |
A monitor object |
||
| character(len=*), | intent(in) | :: | name |
Name of the monitor |
||
| integer, | intent(in) | :: | ncol |
Number of columns |
||
| character(len=*), | intent(in), | optional | :: | sep |
Column separator |
Print the content of this monitor
Prints to file or stdout content of the monitor
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(monitor_obj), | intent(inout) | :: | this |
A monitor object |
||
| logical, | intent(in) | :: | print_labels |
True if we want to print labels |
Set the value
Sets the value in the nth column of a monitor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(monitor_obj), | intent(inout) | :: | this |
A monitor object |
||
| integer, | intent(in) | :: | n |
Column index |
||
| class(*), | intent(in) | :: | value |
Value |
type :: monitor_obj !> A monitor object made of a collection of columns. type(column_obj), & allocatable :: col(:) !! Columns integer :: fid !! Monitor IO unit character(monSize) :: name !! Name of the monitor file logical :: stdout !! Print to stdout character(len=1) :: sep !! Column seperator character(len=16) :: FMT(4) !! Format specifiers contains procedure :: Initialize => monitor_obj_Init !! Intialize a monitor object procedure :: Finalize => monitor_obj_Final !! Finalize a monitor object procedure :: Print => monitor_obj_Print !! Print the content of this monitor procedure :: Formats => monitor_obj_Formats !! Define the format specifiers procedure :: SetVal => monitor_obj_SetVal !! Set the value end type monitor_obj