find_neighbor_inds Subroutine

public subroutine find_neighbor_inds(mesh, ind, diagonal, ind_nb)

Scan points in 3x3 vicinity and return their index only

Arguments

Type IntentOptional Attributes Name
type(mesh_cart_t), intent(in) :: mesh

Mesh

integer, intent(in) :: ind

Index of input boundary point

logical, intent(in) :: diagonal

Whether to include diagonal neighbors

integer, intent(out), dimension(:) :: ind_nb

Index of neighboring points, must be already allocated If diagonal neighbors included, must have 8 entries If they are excluded, must be of size 4


Contents