get_2d_indices_pgrid Function

public pure function get_2d_indices_pgrid(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, DIMENSION(2)

2d index