get_surrounding_indices Interface

interface
public module subroutine get_surrounding_indices(self, xp, yp, ns, ind_sur, ns_complete, ind_nearest)

Arguments

Type IntentOptional Attributes Name
class(mesh_cart_t), intent(in) :: self

Instance of the type

real(kind=FP), intent(in) :: xp

x-coordinate of point

real(kind=FP), intent(in) :: yp

y-coordinate of point

integer, intent(in) :: ns

Dimension of surrounding local grid

integer, intent(out), optional, dimension(ns, ns) :: ind_sur

Indices of surrounding grid points

integer, intent(out), optional :: ns_complete

Dimension of surrounding local grid, that is complete (w/o missing points)

integer, intent(out), optional :: ind_nearest

Index of nearest point on surrounding grid

Description

Finds ns x ns indices of points surrounding (xp, yp)