Searches a list for a given value and returns the position in the list if the value exists.
More...
|
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...
|
|
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.
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] | a | The list to search |
[in] | value | The value to search for |
[out] | position | On exit, the position of value in the list. If value does not exist in the list the returned position is zero. |
[out] | err | The error code |
[out] | error | The 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] | a | The list to search |
[in] | value | The value to search for |
[out] | position | On exit, the position of value in the list. If value does not exist in the list the returned position is zero. |
[out] | err | The error code |
[out] | error | The 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] | a | The list to search |
[in] | value | The value to search for |
[out] | position | On exit, the position of value in the list. If value does not exist in the list the returned position is zero. |
[out] | err | The error code |
[out] | error | The error string |
Definition at line 2910 of file lists.f90.