Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=ESMF_KIND_R8), | intent(out) | :: | array(:,:) | |||
integer, | intent(in) | :: | multiplier |
subroutine fillArray(array, multiplier) ! Fill the given 2-d array based on indices times a multiplier real(ESMF_KIND_R8), intent(out) :: array(:,:) integer, intent(in) :: multiplier integer :: i, j do j = 1, size(array, 2) do i = 1, size(array, 1) array(i,j) = (localPet+1) * multiplier * ((i-1)*size(array,2) + (j-1)) end do end do end subroutine fillArray