Ignore:
Timestamp:
12/10/14 14:27:09 (10 years ago)
Author:
rlacroix
Message:

Add a new attribute type for dates and use it for the context's start_date and time_origin.

The "xios_date" type should now be used to get/set date attributes through the Fortran interface. This avoids using strings to manipulate dates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/fortran/idate.F90

    r501 r532  
    66   INTEGER(kind = C_INT), PARAMETER :: D360 = 0 , ALLLEAP = 1 , NOLEAP = 2 , JULIAN = 3 , GREGORIAN = 4 
    77 
    8    TYPE txios(date) 
    9       INTEGER :: year, month, day, hour, minute, second 
     8   TYPE, BIND(C) :: txios(date) 
     9      INTEGER(kind = C_INT) :: year, month, day, hour, minute, second 
    1010   END TYPE txios(date) 
    1111 
Note: See TracChangeset for help on using the changeset viewer.