Ignore:
Timestamp:
12/11/14 14:32:37 (9 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/test/test_cs.f90

    r501 r537  
    3030  INTEGER :: size 
    3131  INTEGER :: comm 
    32   TYPE(xios_time)      :: dtime 
     32  TYPE(xios_duration) :: dtime 
    3333  TYPE(xios_context) :: ctx_hdl 
    3434  INTEGER,PARAMETER :: ni_glo=100  
     
    126126  
    127127    dtime%second=3600 
    128     CALL xios_set_timestep(dtime)  
     128    CALL xios_set_context_attr("test", timestep=dtime) 
    129129     
    130130!    ni=0 ; lonvalue(:)=0 
Note: See TracChangeset for help on using the changeset viewer.