Return the kx index, given yxf-layout and a global index
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(yxf_layout_type), | intent(in) | :: | lo | |||
integer, | intent(in) | :: | i |
elemental function it_idx_yxf (lo, i)
implicit none
integer :: it_idx_yxf
type (yxf_layout_type), intent (in) :: lo
integer, intent (in) :: i
it_idx_yxf = 1+mod((i-lo%llim_world)/lo%it_comp,lo%nx)
end function it_idx_yxf