![]() |
(git:5f3bc36)
|
Representation of arbitrary number of 1d integer arrays with arbitrary sizes. This is needed for generic handling of dimension-specific tensor quantities (such as block index). More...
Data Types | |
| type | array_list |
| interface | get_ith_array |
Functions/Subroutines | |
| pure integer function, public | number_of_arrays (list) |
| number of arrays stored in list | |
| pure integer function, dimension(number_of_arrays(list)), public | get_array_elements (list, indices) |
| Get an element for each array. | |
| subroutine, public | 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 (listcol_data), storing the indices that start a new array (listptr). | |
| type(array_list) function, public | array_sublist (list, i_selected) |
| extract a subset of arrays | |
| subroutine, public | destroy_array_list (list) |
| destroy array list. | |
| subroutine, public | get_arrays (list, data_1, data_2, data_3, data_4, i_selected) |
| Get all arrays contained in list. | |
| subroutine, public | get_ith_array (list, i, array_size, array) |
| get ith array | |
| integer function, dimension(:), allocatable, public | sizes_of_arrays (list) |
| sizes of arrays stored in list | |
| integer function, dimension(:), allocatable, public | sum_of_arrays (list) |
| sum of all elements for each array stored in list | |
| subroutine, public | array_offsets (list_in, list_out) |
| partial sums of array elements. | |
| subroutine, public | reorder_arrays (list_in, list_out, order) |
| reorder array list. | |
| logical function, public | check_equal (list1, list2) |
| check whether two array lists are equal | |
Representation of arbitrary number of 1d integer arrays with arbitrary sizes. This is needed for generic handling of dimension-specific tensor quantities (such as block index).
| pure integer function, public dbt_array_list_methods::number_of_arrays | ( | type(array_list), intent(in) | list | ) |
number of arrays stored in list
Definition at line 69 of file dbt_array_list_methods.F.
| pure integer function, dimension(number_of_arrays(list)), public dbt_array_list_methods::get_array_elements | ( | type(array_list), intent(in) | list, |
| integer, dimension(number_of_arrays(list)), intent(in) | indices | ||
| ) |
Get an element for each array.
| indices | element index for each array |
Definition at line 82 of file dbt_array_list_methods.F.
| subroutine, public dbt_array_list_methods::create_array_list | ( | type(array_list), intent(out) | list, |
| integer, intent(in) | ndata, | ||
| integer, dimension(:), intent(in), optional | data_1, | ||
| integer, dimension(:), intent(in), optional | data_2, | ||
| integer, dimension(:), intent(in), optional | data_3, | ||
| integer, dimension(:), intent(in), optional | data_4 | ||
| ) |
collects any number of arrays of different sizes into a single array (listcol_data), storing the indices that start a new array (listptr).
| list | list of arrays |
| ndata | number of arrays |
| data | arrays 1 and 2 |
Definition at line 104 of file dbt_array_list_methods.F.
| type(array_list) function, public dbt_array_list_methods::array_sublist | ( | type(array_list), intent(in) | list, |
| integer, dimension(:), intent(in) | i_selected | ||
| ) |
extract a subset of arrays
| list | list of arrays |
| i_selected | array numbers to retrieve |
Definition at line 164 of file dbt_array_list_methods.F.
| subroutine, public dbt_array_list_methods::destroy_array_list | ( | type(array_list), intent(inout) | list | ) |
destroy array list.
Definition at line 195 of file dbt_array_list_methods.F.
| subroutine, public dbt_array_list_methods::get_arrays | ( | type(array_list), intent(in) | list, |
| integer, dimension(:), intent(out), optional, allocatable | data_1, | ||
| integer, dimension(:), intent(out), optional, allocatable | data_2, | ||
| integer, dimension(:), intent(out), optional, allocatable | data_3, | ||
| integer, dimension(:), intent(out), optional, allocatable | data_4, | ||
| integer, dimension(:), intent(in), optional | i_selected | ||
| ) |
Get all arrays contained in list.
| data | arrays 1 and 2 |
| i_selected | array numbers to retrieve (if not present, all arrays are returned) |
Definition at line 207 of file dbt_array_list_methods.F.
| subroutine, public dbt_array_list_methods::get_ith_array | ( | type(array_list), intent(in) | list, |
| integer, intent(in) | i, | ||
| integer, intent(in) | array_size, | ||
| integer, dimension(array_size), intent(out) | array | ||
| ) |
get ith array
Definition at line 247 of file dbt_array_list_methods.F.
| integer function, dimension(:), allocatable, public dbt_array_list_methods::sizes_of_arrays | ( | type(array_list), intent(in) | list | ) |
sizes of arrays stored in list
Definition at line 282 of file dbt_array_list_methods.F.
| integer function, dimension(:), allocatable, public dbt_array_list_methods::sum_of_arrays | ( | type(array_list), intent(in) | list | ) |
sum of all elements for each array stored in list
Definition at line 299 of file dbt_array_list_methods.F.
| subroutine, public dbt_array_list_methods::array_offsets | ( | type(array_list), intent(in) | list_in, |
| type(array_list), intent(out) | list_out | ||
| ) |
partial sums of array elements.
Definition at line 317 of file dbt_array_list_methods.F.
| subroutine, public dbt_array_list_methods::reorder_arrays | ( | type(array_list), intent(in) | list_in, |
| type(array_list), intent(out) | list_out, | ||
| integer, dimension(number_of_arrays(list_in)), intent(in) | order | ||
| ) |
reorder array list.
Definition at line 339 of file dbt_array_list_methods.F.
| logical function, public dbt_array_list_methods::check_equal | ( | type(array_list), intent(in) | list1, |
| type(array_list), intent(in) | list2 | ||
| ) |
check whether two array lists are equal
Definition at line 368 of file dbt_array_list_methods.F.