get_2d_indices_tensor Function

public pure function get_2d_indices_tensor(map, ind_in) result(ind_out)

transform nd index to 2d index, using info from index mapping.

Arguments

Type IntentOptional Attributes Name
type(nd_to_2d_mapping), intent(in) :: map

index mapping

integer, intent(in), DIMENSION(map%ndim_nd) :: ind_in

nd index

Return Value integer(kind=int_8), DIMENSION(2)

2d index