Return the energy index, given g-layout and a global index
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(g_layout_type), | intent(in) | :: | lo | |||
integer, | intent(in) | :: | i |
elemental function ie_idx_g (lo, i)
implicit none
integer :: ie_idx_g
type (g_layout_type), intent (in) :: lo
integer, intent (in) :: i
ie_idx_g=1+mod((i-lo%llim_world)/lo%ie_comp,lo%negrid)
end function ie_idx_g