SortTripletList Interface

public interface SortTripletList

Contents


Module Procedures

public subroutine SortTripletList_r(input_list, matrix_columns, matrix_rows, sorted_list, bubble_in)

Sorts a triplet list by index values. Implementation is based on bucket sort. This is why it needs the number of matrix columns. Bubble sort is used within a bucket.

Arguments

Type IntentOptional AttributesName
type(TripletList_r), intent(in) :: input_list

List to be sorted.

integer, intent(in) :: matrix_columns

This is the highest column value in the list.

integer, intent(in) :: matrix_rows

This is the highest row value in the list.

type(TripletList_r), intent(out) :: sorted_list

A now sorted version of the list. This routine will allocate it.

logical, intent(in), optional :: bubble_in

False if you don't need the final bubble sort.

public subroutine SortTripletList_c(input_list, matrix_columns, matrix_rows, sorted_list, bubble_in)

Sorts a triplet list by index values. Implementation is based on bucket sort. This is why it needs the number of matrix columns. Bubble sort is used within a bucket.

Arguments

Type IntentOptional AttributesName
type(TripletList_c), intent(in) :: input_list

List to be sorted.

integer, intent(in) :: matrix_columns

This is the highest column value in the list.

integer, intent(in) :: matrix_rows

This is the highest row value in the list.

type(TripletList_c), intent(out) :: sorted_list

A now sorted version of the list. This routine will allocate it.

logical, intent(in), optional :: bubble_in

False if you don't need the final bubble sort.