MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
arrayhandlersmodule::ifind Interface Reference
Collaboration diagram for arrayhandlersmodule::ifind:
Collaboration graph

Private Member Functions

integer(i4b) function ifind_character (array, str)
 Find the 1st array element containing str, or -1 if not found. More...
 
integer(i4b) function ifind_integer (iarray, ival)
 Find the first element containing ival, or -1 if not found. More...
 
integer(i4b) function ifind_charstring (array, str)
 Find the 1st array element containing str, or -1 if not found. More...
 

Detailed Description

Definition at line 44 of file ArrayHandlers.f90.

Member Function/Subroutine Documentation

◆ ifind_character()

integer(i4b) function arrayhandlersmodule::ifind::ifind_character ( character(len=*), dimension(:)  array,
character(len=*)  str 
)
private

Definition at line 473 of file ArrayHandlers.f90.

474  ! -- return
475  integer(I4B) :: ifind_character
476  ! -- dummy
477  character(len=*), dimension(:) :: array
478  character(len=*) :: str
479  ! -- local
480  integer(I4B) :: i
481 
482  ifind_character = -1
483  findloop: do i = 1, size(array)
484  if (array(i) == str) then
485  ifind_character = i
486  exit findloop
487  end if
488  end do findloop
Here is the call graph for this function:

◆ ifind_charstring()

integer(i4b) function arrayhandlersmodule::ifind::ifind_charstring ( type(characterstringtype), dimension(:)  array,
type(characterstringtype str 
)
private

Definition at line 493 of file ArrayHandlers.f90.

495  ! -- return
496  integer(I4B) :: ifind_charstring
497  ! -- dummy
498  type(CharacterStringType), dimension(:) :: array
499  type(CharacterStringType) :: str
500  ! -- local
501  integer(I4B) :: i
502 
503  ifind_charstring = -1
504  findloop: do i = 1, size(array)
505  if (array(i) == str) then
506  ifind_charstring = i
507  exit findloop
508  end if
509  end do findloop
Here is the call graph for this function:

◆ ifind_integer()

integer(i4b) function arrayhandlersmodule::ifind::ifind_integer ( integer(i4b), dimension(:)  iarray,
integer(i4b)  ival 
)
private

Definition at line 513 of file ArrayHandlers.f90.

514  ! -- return
515  integer(I4B) :: ifind_integer
516  ! -- dummy
517  integer(I4B), dimension(:) :: iarray
518  integer(I4B) :: ival
519  ! -- local
520  integer(I4B) :: i
521 
522  ifind_integer = -1
523  findloop: do i = 1, size(iarray)
524  if (iarray(i) == ival) then
525  ifind_integer = i
526  exit findloop
527  end if
528  end do findloop
Here is the call graph for this function:

The documentation for this interface was generated from the following file: