get the index of this workflow in the array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
function workflow_name_to_index(name) result(idx) !! get the index of this workflow in the array character(len=*),intent(in) :: name integer :: idx do idx = 1, size(workflows) if (name == workflows(idx)%name) return ! found it end do if (idx>size(workflows)) error stop 'workflow not found: '//name end function workflow_name_to_index