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


interface~~positionofval~~CallsGraph interface~positionofval positionofval proc~posofval_attribute posofval_attribute interface~positionofval->proc~posofval_attribute interface~sortedposofval sortedposofval proc~posofval_attribute->interface~sortedposofval proc~sortposofval_attribute sortposofval_attribute interface~sortedposofval->proc~sortposofval_attribute


Module Procedures

private function posofval_attribute(me, val, nextifnotfound, lower, upper) result(pos)

the actual position of a given value in the dynamic array

Read more…


type(dyn_attributearray_type), intent(in) :: me
type(sdr_attribute_type), 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