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

    r532 r537  
    1313  INTEGER :: comm 
    1414  TYPE(xios_date)      :: start_date, time_origin 
    15   TYPE(xios_time)      :: dtime 
     15  TYPE(xios_duration)  :: dtime 
    1616  TYPE(xios_context) :: ctx_hdl 
    1717  INTEGER,PARAMETER :: ni_glo=10 
     
    131131 
    132132  dtime%second=3600 
    133   CALL xios_set_timestep(dtime) 
     133  CALL xios_set_context_attr("atmosphere", timestep=dtime) 
    134134 
    135135!!! Recupration des valeurs des longitudes et de taille des domaines locaux (pour test de fonctionnalité) 
     
    213213 
    214214  dtime%second=1800 
    215   CALL xios_set_timestep(dtime) 
     215  CALL xios_set_context_attr("surface", timestep=dtime) 
    216216 
    217217!!! 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.