Returns the ID of a monitor identified by name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(monitor_set), | intent(inout) | :: | this |
Set of monitor objects |
||
| character(len=*), | intent(in) | :: | name |
Name of the monitor |
Monitor ID
impure function monitor_set_GetIndex(this,name) result(loc) !> Returns the ID of a monitor identified by name. implicit none class(monitor_set), intent(inout) :: this !! Set of monitor objects character(len=*), intent(in) :: name !! Name of the monitor integer :: loc !! Monitor ID call this%tbl%Get(key=this%tbl%HashString(name),val=loc) if (loc.eq.-1) call this%parallel%Stop("Unable to find monitor: "//trim(adjustl(name))) return end function monitor_set_GetIndex