private function tem_positioninsorted_long(me, val, lower, upper) result(pos)
return the position of a value in 'me', which is an array with sorted
entries.
if the value was not found,
- return 0 if nextifnotfound = .false.
- return position at the end if nextifnotfound = .true.
Arguments
Type
Intent
Optional
Attributes
Name
integer(kind=long_k),
intent(in)
::
me(:)
array to search in
integer(kind=long_k),
intent(in)
::
val
value to look for
integer,
intent(in),
optional
::
lower
lower search limit
integer,
intent(in),
optional
::
upper
upper search limit
Return Value integer
position of val in the sorted list, 0 if not found
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.