insertion_sort Subroutine

public subroutine insertion_sort(nz, ndim, decrow, arr)

Sorts integer tuple arr in ascending order according to row decr

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nz

Number of tuples

integer, intent(in) :: ndim

Dimension of tuples

integer, intent(in) :: decrow

Is sorted in ascending order according to row decrow

integer, intent(inout), dimension(ndim, nz) :: arr

Tuples, on return sorted