/[lmdze]/trunk/IOIPSL/Calendar/itau2date.f90
ViewVC logotype

Annotation of /trunk/IOIPSL/Calendar/itau2date.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 335 - (hide annotations)
Thu Sep 12 21:22:46 2019 UTC (4 years, 8 months ago) by guez
File size: 624 byte(s)
Julian dates be in double precision

`ConfigureCompilerFlags.cmake` and `TAGS.cmake` are now copied into
LMDZE, to avoid dependency on the environment.

Julian dates must be in double precision, to get time step precision.

Add optional attribute to argument sec of procedure ju2ymds. We do
not need sec in procedure dynredem0.

In procedure ju2ymds, by construction, sec cannot be > `un_jour`.

Remove useless intermediary variables in procedure ymds2ju.

1 guez 92 module itau2date_m
2    
3     implicit none
4    
5     contains
6    
7 guez 335 double precision FUNCTION itau2date (itau, date0, deltat)
8 guez 92
9     ! This function transforms itau into a date. The date whith which
10     ! the time axis is going to be labeled
11    
12 guez 335 use calendar, only: un_jour
13 guez 92
14 guez 335 INTEGER, intent(in):: itau ! current time step
15     double precision, intent(in):: date0 ! Date at which itau was equal to 0
16     real, intent(in):: deltat ! time step between itau s
17    
18     !--------------------------------------------------------------------
19 guez 92
20 guez 335 itau2date = REAL(itau) * deltat / un_jour + date0
21 guez 92
22     END FUNCTION itau2date
23    
24     end module itau2date_m

  ViewVC Help
Powered by ViewVC 1.1.21