find_sizes Function

public function find_sizes(labelled_matrix, num_labels) result(sizes)

Count the number of sites belonging to each cluster in the labelled matrix.

Arguments

Type IntentOptional AttributesName
integer, intent(in), dimension(:,:):: labelled_matrix

Integer matrix with labelled clusters, resulting from the Hoshen-Kopelman algorithm.

integer, intent(in) :: num_labels

The known number of clusters.

Return Value integer, dimension(:),allocatable

Array of cluster sizes. The i'th element is the size of the cluster with label i.


Called by

proc~~find_sizes~~CalledByGraph proc~find_sizes find_sizes proc~cluster_number_density cluster_number_density proc~cluster_number_density->proc~find_sizes

Contents

None