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

    r532 r537  
    1212  INTEGER :: comm 
    1313  TYPE(xios_date)      :: start_date, time_origin 
    14   TYPE(xios_time)      :: dtime 
     14  TYPE(xios_duration)  :: dtime 
    1515  TYPE(xios_context) :: ctx_hdl 
    1616  INTEGER,PARAMETER :: ni_glo=100 
     
    122122 
    123123  dtime%second=3600 
    124   CALL xios_set_timestep(dtime)  
     124  CALL xios_set_context_attr("atmosphere", timestep=dtime) 
    125125     
    126126!!! Recupration des valeurs des longitudes et de taille des domaines locaux (pour test de fonctionnalité) 
     
    204204 
    205205  dtime%second=1800 
    206   CALL xios_set_timestep(dtime)  
     206  CALL xios_set_context_attr("surface", timestep=dtime) 
    207207     
    208208!!! Recupration des valeurs des longitudes et de taille des domaines locaux (pour test de fonctionnalité) 
Note: See TracChangeset for help on using the changeset viewer.