create_array_list Subroutine

public subroutine create_array_list(list, ndata, data_1, data_2, data_3, data_4)

collects any number of arrays of different sizes into a single array (list%col_data), storing the indices that start a new array (list%ptr).

Arguments

Type IntentOptional Attributes Name
type(array_list), intent(out) :: list

list of arrays

integer, intent(in) :: ndata

number of arrays

integer, intent(in), optional, DIMENSION(:) :: data_1

arrays 1 and 2

integer, intent(in), optional, DIMENSION(:) :: data_2

arrays 1 and 2

integer, intent(in), optional, DIMENSION(:) :: data_3

arrays 1 and 2

integer, intent(in), optional, DIMENSION(:) :: data_4

arrays 1 and 2