get_indices Interface

public interface get_indices

to get all the indices in a 2d array that match a value

Calls

interface~~get_indices~~CallsGraph interface~get_indices get_indices proc~get_indices_in_char_array get_indices_in_char_array interface~get_indices->proc~get_indices_in_char_array proc~get_indices_in_int_array get_indices_in_int_array interface~get_indices->proc~get_indices_in_int_array

Module Procedures

private subroutine get_indices_in_char_array(array, val, iloc, jloc)

return the indices of all the val elements in 2d array.

Arguments

Type IntentOptional Attributes Name
character(len=1), intent(in), dimension(:,:) :: array
character(len=1), intent(in) :: val
integer, intent(out), dimension(:), allocatable :: iloc
integer, intent(out), dimension(:), allocatable :: jloc

private subroutine get_indices_in_int_array(array, val, iloc, jloc)

return the indices of all the val elements in 2d array.

Arguments

Type IntentOptional Attributes Name
integer, intent(in), dimension(:,:) :: array
integer, intent(in) :: val
integer, intent(out), dimension(:), allocatable :: iloc
integer, intent(out), dimension(:), allocatable :: jloc