build_ranking Interface

interface
public module subroutine build_ranking(self, nadj, adjacency, kends, rnk, np_segs)

Arguments

Type IntentOptional Attributes Name
class(polygon_in_mesh_t), intent(inout) :: self

Instance of type

integer, intent(in), dimension(self%np) :: nadj

Number of adjacent points for given point (from build_adjacency)

integer, intent(in), dimension(self%np, 2) :: adjacency

Adjacency information (from build_adjacency)

integer, intent(in), dimension(2*self%nsegs) :: kends

Polygon indices of end points of polygon segments. On succesfull return, will be sorted according to segments.

integer, intent(out), dimension(self%np) :: rnk

Ranking array, i.e. indices of polygon to sort

integer, intent(out), dimension(self%nsegs) :: np_segs

Number of points of segment

Description

Builds ranking of polygon indices for sorting