Return the species 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 is_idx_yxf (lo, i)
implicit none
integer :: is_idx_yxf
type (yxf_layout_type), intent (in) :: lo
integer, intent (in) :: i
is_idx_yxf = 1+mod((i-lo%llim_world)/lo%is_comp,lo%nspec)
end function is_idx_yxf