get_nd_indices_tensor Function

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

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

Arguments

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

index mapping

integer(kind=int_8), intent(in), DIMENSION(2) :: ind_in

2d index

Return Value integer, DIMENSION(map%ndim_nd)

nd index