positionofval Interface

public interface positionofval

return the position of a given value in the array val, which is what you usually want to know. it is the index of a given value

Calls

interface~~positionofval~3~~CallsGraph interface~positionofval~3 positionofval proc~posofval_real posofval_real interface~positionofval~3->proc~posofval_real interface~sortedposofval~4 sortedposofval proc~posofval_real->interface~sortedposofval~4 proc~sortposofval_label sortposofval_label interface~sortedposofval~4->proc~sortposofval_label

Contents


Module Procedures

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

the actual position of a given value in the dynamic array

Read more…

Arguments

TypeIntentOptionalAttributesName
type(dyn_realarray_type), intent(in) :: me
real(kind=rk), intent(in) :: val
logical, intent(in), optional :: nextifnotfound

flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found.

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

Return Value integer