Ignore:
Timestamp:
12/11/14 14:32:37 (10 years ago)
Author:
rlacroix
Message:

Add a new attribute type for durations and use it for the context's timestep.

Note that the "xios_time" type and the "xios_set_timestep" procedure have been removed from the Fortran interface. Instead, the "xios_duration" type and the "xios_get_context_attr"/"xios_set_context_attr" procedures should now be used to get/set the timestep.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/fortran_attr/context_interface_attr.F90

    r532 r537  
    5656      USE IDATE 
    5757      INTEGER (kind = C_INTPTR_T), VALUE :: context_hdl 
    58       TYPE(xios_date), VALUE :: start_date 
     58      TYPE(txios(date)), VALUE :: start_date 
    5959    END SUBROUTINE cxios_set_context_start_date 
    6060     
     
    7777      USE IDATE 
    7878      INTEGER (kind = C_INTPTR_T), VALUE :: context_hdl 
    79       TYPE(xios_date), VALUE :: time_origin 
     79      TYPE(txios(date)), VALUE :: time_origin 
    8080    END SUBROUTINE cxios_set_context_time_origin 
    8181     
     
    9494     
    9595     
    96     SUBROUTINE cxios_set_context_timestep(context_hdl, timestep, timestep_size) BIND(C) 
     96    SUBROUTINE cxios_set_context_timestep(context_hdl, timestep) BIND(C) 
    9797      USE ISO_C_BINDING 
     98      USE IDATE 
    9899      INTEGER (kind = C_INTPTR_T), VALUE :: context_hdl 
    99       CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: timestep 
    100       INTEGER  (kind = C_INT)     , VALUE        :: timestep_size 
     100      TYPE(txios(duration)), VALUE :: timestep 
    101101    END SUBROUTINE cxios_set_context_timestep 
    102102     
    103     SUBROUTINE cxios_get_context_timestep(context_hdl, timestep, timestep_size) BIND(C) 
     103    SUBROUTINE cxios_get_context_timestep(context_hdl, timestep) BIND(C) 
    104104      USE ISO_C_BINDING 
     105      USE IDATE 
    105106      INTEGER (kind = C_INTPTR_T), VALUE :: context_hdl 
    106       CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: timestep 
    107       INTEGER  (kind = C_INT)     , VALUE        :: timestep_size 
     107      TYPE(txios(duration)) :: timestep 
    108108    END SUBROUTINE cxios_get_context_timestep 
    109109     
Note: See TracChangeset for help on using the changeset viewer.