Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | vec(:) | |||
integer, | intent(in) | :: | maxIdx |
subroutine ResetIndices(vec, maxIdx)
implicit none
integer, intent(inout) :: vec(:)
integer, intent(in) :: maxIdx
integer :: i
do i = 1, maxIdx
vec(i) = i
end do
end subroutine ResetIndices