| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(port_list_t), | intent(in), | target | :: | me | ||
| character(len=*), | intent(in) | :: | name |
Name of the component |
Index of the port on ports array
function port_list_find_nbPorts(me,name) result(idx_out) class(port_list_t), target, intent(in) :: me character(*), intent(in) :: name !! Name of the component integer :: idx_out !! Index of the port on ports array integer :: i, pos pos = index(me%list,' '//name//':') if (pos == 0) then print*, 'ERROR: component "'//name//'" not found in port list.' error stop 'Aborting: unknown component ID in connection.' endif i = pos + len(name) + 2 idx_out = to_int(me%list(i:)) end function port_list_find_nbPorts