Vector initialization: 1 … n
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4), | intent(out), | dimension(n) | :: | order |
order vector |
|
integer(kind=I4), | intent(in) | :: | n |
size of the vector |
subroutine init_order(order, n) !! Vector initialization: 1 ... n implicit none integer(kind=I4), intent(in) :: n !! *size of the vector* integer(kind=I4), dimension(n), intent(out) :: order !! *order vector* integer(kind=I4) :: i order = [ integer(kind=I4) :: (i, i = 1, n) ] return endsubroutine init_order