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_unstruct_complete.f90

    r501 r537  
    1111  CHARACTER(len=*),PARAMETER :: id="client" 
    1212  INTEGER :: comm 
    13   TYPE(xios_time)      :: dtime 
     13  TYPE(xios_duration) :: dtime 
    1414  TYPE(xios_context) :: ctx_hdl 
    1515  INTEGER, PARAMETER :: nlon=60  
     
    209209  
    210210  dtime%second=3600 
    211   CALL xios_set_timestep(dtime)  
     211  CALL xios_set_context_attr("surface", timestep=dtime) 
    212212  CALL xios_close_context_definition() 
    213213     
Note: See TracChangeset for help on using the changeset viewer.