Ignore:
Timestamp:
02/01/17 10:10:40 (7 years ago)
Author:
rlacroix
Message:

Add a new attribute "ts_target" for variables.

It allows choosing the target of the variable when using timeseries. Possible values are:

  • field
  • file
  • both
  • none.

If no value is set then the default behavior is used, that is "field" for field variables and "file" for file variables.

File:
1 edited

Legend:

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

    r581 r1041  
    5252 
    5353 
     54    SUBROUTINE cxios_set_variablegroup_ts_target(variablegroup_hdl, ts_target, ts_target_size) BIND(C) 
     55      USE ISO_C_BINDING 
     56      INTEGER (kind = C_INTPTR_T), VALUE :: variablegroup_hdl 
     57      CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: ts_target 
     58      INTEGER  (kind = C_INT)     , VALUE        :: ts_target_size 
     59    END SUBROUTINE cxios_set_variablegroup_ts_target 
     60 
     61    SUBROUTINE cxios_get_variablegroup_ts_target(variablegroup_hdl, ts_target, ts_target_size) BIND(C) 
     62      USE ISO_C_BINDING 
     63      INTEGER (kind = C_INTPTR_T), VALUE :: variablegroup_hdl 
     64      CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: ts_target 
     65      INTEGER  (kind = C_INT)     , VALUE        :: ts_target_size 
     66    END SUBROUTINE cxios_get_variablegroup_ts_target 
     67 
     68    FUNCTION cxios_is_defined_variablegroup_ts_target(variablegroup_hdl) BIND(C) 
     69      USE ISO_C_BINDING 
     70      LOGICAL(kind=C_BOOL) :: cxios_is_defined_variablegroup_ts_target 
     71      INTEGER (kind = C_INTPTR_T), VALUE :: variablegroup_hdl 
     72    END FUNCTION cxios_is_defined_variablegroup_ts_target 
     73 
     74 
    5475    SUBROUTINE cxios_set_variablegroup_type(variablegroup_hdl, type, type_size) BIND(C) 
    5576      USE ISO_C_BINDING 
Note: See TracChangeset for help on using the changeset viewer.