sortposofval_path Function

public function sortposofval_path(me, val, nextifnotfound, lower, upper) result(pos)

return the sorted position of a value in the given dynamic array

if the value was not found, - return 0 if nextifnotfound = .false. - return position at the end if nextifnotfound = .true.

binary search on sorted list

Arguments

TypeIntentOptionalAttributesName
type(dyn_patharray_type), intent(in) :: me
type(tem_path_type), intent(in) :: val
logical, intent(in), optional :: nextifnotfound

flag to indicate, if the next entry in the list should be returned, if the searched one is not found.

integer, intent(in), optional :: lower
integer, intent(in), optional :: upper

Return Value integer


Called by

proc~~sortposofval_path~~CalledByGraph proc~sortposofval_path sortposofval_path interface~sortedposofval~5 sortedposofval interface~sortedposofval~5->proc~sortposofval_path proc~append_da_path append_da_path proc~append_da_path->interface~sortedposofval~5 proc~posofval_path posofval_path proc~posofval_path->interface~sortedposofval~5 interface~positionofval~5 positionofval interface~positionofval~5->proc~posofval_path interface~append~23 append interface~append~23->proc~append_da_path proc~sorttruncate_da_path sorttruncate_da_path proc~sorttruncate_da_path->interface~append~23

Contents


Variables

TypeVisibilityAttributesNameInitial
logical, public :: retnext
integer, public :: lb
integer, public :: ub
integer, public :: mid
type(tem_path_type), public :: lb_val
type(tem_path_type), public :: ub_val
type(tem_path_type), public :: mid_val