sort_row Subroutine

public subroutine sort_row(size, col_ind, values)

Simple bubble sort for small arrays. Different from the sort_and_sum function below as it does not include the summed-up part.

Arguments

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

Dimension of the arrays

integer, intent(inout) :: col_ind(size)

Column index of the input and the output sorted array

real(kind=FP), intent(inout) :: values(size)

Element value