datfrnt.f 930 B

1234567891011121314151617181920212223242526272829303132333435
  1. ! ==================================================================
  2. ! ------------------------------------------------------------------
  3. !
  4. subroutine datfrnt(ntt,kyear,kdate)
  5. use lsgvar
  6. implicit none
  7. !
  8. ! ------------------------------------------------------------------
  9. !
  10. !**** *datfrnt*
  11. !
  12. ! by E. Kirk 22-Feb-2008
  13. !
  14. ! Purpose.
  15. ! --------
  16. ! *datfrnt* transfers date and time information copied from
  17. ! Planet Simulator to LSG
  18. !
  19. ! Input
  20. ! -----
  21. integer, intent(in) :: ntt ! LSG timestep (ignored)
  22. !
  23. ! mdatim(6) = Year,Month,Day,Hour,Minute,Weekday
  24. !
  25. ! Output.
  26. ! -------
  27. integer, intent(out) :: kyear ! Simulation year
  28. integer, intent(out) :: kdate ! MMDD
  29. !
  30. !* 1. Define output values
  31. ! ------------------------------
  32. kyear = mdatim(1)
  33. kdate = -(100 * mdatim(2) + mdatim(3))
  34. return
  35. end subroutine datfrnt