parent.f90 293 B

123456789101112131415161718192021222324
  1. module mother
  2. real, parameter :: pi = 4.*atan(1.)
  3. real :: tau
  4. interface
  5. module elemental real function pi2tau(pi)
  6. real, intent(in) :: pi
  7. end function pi2tau
  8. end interface
  9. contains
  10. end module mother
  11. program hier1
  12. use mother
  13. tau = pi2tau(pi)
  14. print *,'pi=',pi, 'tau=', tau
  15. end program