FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(lz_layout_type), | intent(in) | :: | lo | |||
integer, | intent(in) | :: | i |
elemental function proc_id_lz (lo, i)
implicit none
integer :: proc_id_lz
type (lz_layout_type), intent (in) :: lo
integer, intent (in) :: i
if (lambda_local) then
proc_id_lz = (i/lo%gsize)*lo%nprocset + mod(i, lo%gsize)/lo%nset
else
proc_id_lz = i/lo%blocksize
end if
end function proc_id_lz