default.txt 461 B

12345678910111213141516171819202122
  1. subroutine test_sub(k)
  2. implicit none
  3. !===============================
  4. ! This is a test subroutine
  5. !===============================
  6. integer, intent(in) :: k
  7. double precision, allocatable :: a(:)
  8. integer, parameter :: nmax=10
  9. integer :: i
  10. allocate (a(nmax))
  11. do i=1,nmax
  12. a(i) = dble(i)*5.d0
  13. enddo
  14. print *, 'Hello world'
  15. write (*,*) a(:)
  16. end subroutine test_sub