OpenCMISS-Iron Internal API Documentation
lists::list_search Interface Reference

Searches a list for a given value and returns the position in the list if the value exists. More...

Private Member Functions

subroutine list_search_intg_array (A, VALUE, POSITION, ERR, ERROR,)
 Searches an integer array list A for VALUE. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero. More...
 
subroutine list_search_sp_array (A, VALUE, POSITION, ERR, ERROR,)
 Searches a single precision real array list A for VALUE. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero. More...
 
subroutine list_search_dp_array (A, VALUE, POSITION, ERR, ERROR,)
 Searches a double precision real array list A for VALUE. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero. More...
 

Detailed Description

Searches a list for a given value and returns the position in the list if the value exists.

See also
LISTS.

Definition at line 231 of file lists.f90.

Member Function/Subroutine Documentation

subroutine lists::list_search::list_search_dp_array ( real(dp), dimension(:), intent(in)  A,
real(dp), intent(in)  VALUE,
integer(intg), intent(out)  POSITION,
integer(intg), intent(out)  ERR,
type(varying_string), intent(out)  ERROR 
)
private

Searches a double precision real array list A for VALUE. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero.

Parameters
[in]aThe list to search
[in]valueThe value to search for
[out]positionOn exit, the position of value in the list. If value does not exist in the list the returned position is zero.
[out]errThe error code
[out]errorThe error string

Definition at line 2936 of file lists.f90.

subroutine lists::list_search::list_search_intg_array ( integer(intg), dimension(:), intent(in)  A,
integer(intg), intent(in)  VALUE,
integer(intg), intent(out)  POSITION,
integer(intg), intent(out)  ERR,
type(varying_string), intent(out)  ERROR 
)
private

Searches an integer array list A for VALUE. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero.

Parameters
[in]aThe list to search
[in]valueThe value to search for
[out]positionOn exit, the position of value in the list. If value does not exist in the list the returned position is zero.
[out]errThe error code
[out]errorThe error string

Definition at line 2858 of file lists.f90.

subroutine lists::list_search::list_search_sp_array ( real(sp), dimension(:), intent(in)  A,
real(sp), intent(in)  VALUE,
integer(intg), intent(out)  POSITION,
integer(intg), intent(out)  ERR,
type(varying_string), intent(out)  ERROR 
)
private

Searches a single precision real array list A for VALUE. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero.

Parameters
[in]aThe list to search
[in]valueThe value to search for
[out]positionOn exit, the position of value in the list. If value does not exist in the list the returned position is zero.
[out]errThe error code
[out]errorThe error string

Definition at line 2910 of file lists.f90.