Put the vector in the vector and update the index (character version)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(inout), | dimension(:) | :: | x | ||
character(len=*), | intent(in), | dimension(:) | :: | vals | ||
integer, | intent(inout) | :: | i |
should be initialized to 0 before the first call |
subroutine fill_char_vector_with_vector(x, vals, i) implicit none character(len=*),dimension(:),intent(inout) :: x character(len=*),dimension(:),intent(in) :: vals integer,intent(inout) :: i !! should be initialized to 0 before the first call integer :: j !! counter do j = 1, size(vals) call fill_vector(x,vals(j),i) end do end subroutine fill_char_vector_with_vector