| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ip), | intent(in) | :: | iseed | |||
| logical, | intent(in) | :: | reverse |
if reverse, then ilocation -> iseed |
pure function traverse(iseed, reverse) result(ilocation) integer(ip),intent(in) :: iseed logical,intent(in) :: reverse !! if reverse, then ilocation -> iseed integer(ip) :: ilocation integer :: i ilocation = iseed ! initialize if (reverse) then do i = NSTAGES, 1, -1 ilocation = map(ilocation,mappings(i),reverse) ! this is really iseed end do else do i = 1, NSTAGES ilocation = map(ilocation,mappings(i),reverse) end do end if end function traverse