sortposofval_projection Function

private function sortposofval_projection(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_projectionarray_type), intent(in) :: me
type(ply_prj_init_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_projection~~CalledByGraph proc~sortposofval_projection sortposofval_projection interface~sortedposofval~2 sortedposofval interface~sortedposofval~2->proc~sortposofval_projection proc~posofval_projection posofval_projection proc~posofval_projection->interface~sortedposofval~2 proc~append_da_projection append_da_projection proc~append_da_projection->interface~sortedposofval~2 interface~positionofval~2 positionofval interface~positionofval~2->proc~posofval_projection interface~append~9 append interface~append~9->proc~append_da_projection proc~sorttruncate_da_projection sorttruncate_da_projection proc~sorttruncate_da_projection->interface~append~9 proc~ply_fill_dynprojectarray ply_fill_dynProjectArray proc~ply_fill_dynprojectarray->interface~append~9

Contents


Variables

TypeVisibilityAttributesNameInitial
logical, private :: retnext
integer, private :: lb
integer, private :: ub
integer, private :: mid
type(ply_prj_init_type), private :: lb_val
type(ply_prj_init_type), private :: ub_val
type(ply_prj_init_type), private :: mid_val