Ignore:
Timestamp:
12/11/14 16:07:42 (10 years ago)
Author:
rlacroix
Message:

Convert more attributes to use the new duration type:

  • field: freq_op and freq_offset
  • file: output_freq, sync_freq and split_freq.

Remember that you now have to use the "xios_duration" type instead of strings to get/set those attributes through the Fortran interface.

File:
1 edited

Legend:

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

    r532 r538  
    149149     
    150150     
    151     SUBROUTINE cxios_set_field_freq_offset(field_hdl, freq_offset, freq_offset_size) BIND(C) 
    152       USE ISO_C_BINDING 
    153       INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
    154       CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: freq_offset 
    155       INTEGER  (kind = C_INT)     , VALUE        :: freq_offset_size 
     151    SUBROUTINE cxios_set_field_freq_offset(field_hdl, freq_offset) BIND(C) 
     152      USE ISO_C_BINDING 
     153      USE IDATE 
     154      INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
     155      TYPE(txios(duration)), VALUE :: freq_offset 
    156156    END SUBROUTINE cxios_set_field_freq_offset 
    157157     
    158     SUBROUTINE cxios_get_field_freq_offset(field_hdl, freq_offset, freq_offset_size) BIND(C) 
    159       USE ISO_C_BINDING 
    160       INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
    161       CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: freq_offset 
    162       INTEGER  (kind = C_INT)     , VALUE        :: freq_offset_size 
     158    SUBROUTINE cxios_get_field_freq_offset(field_hdl, freq_offset) BIND(C) 
     159      USE ISO_C_BINDING 
     160      USE IDATE 
     161      INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
     162      TYPE(txios(duration)) :: freq_offset 
    163163    END SUBROUTINE cxios_get_field_freq_offset 
    164164     
     
    170170     
    171171     
    172     SUBROUTINE cxios_set_field_freq_op(field_hdl, freq_op, freq_op_size) BIND(C) 
    173       USE ISO_C_BINDING 
    174       INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
    175       CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: freq_op 
    176       INTEGER  (kind = C_INT)     , VALUE        :: freq_op_size 
     172    SUBROUTINE cxios_set_field_freq_op(field_hdl, freq_op) BIND(C) 
     173      USE ISO_C_BINDING 
     174      USE IDATE 
     175      INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
     176      TYPE(txios(duration)), VALUE :: freq_op 
    177177    END SUBROUTINE cxios_set_field_freq_op 
    178178     
    179     SUBROUTINE cxios_get_field_freq_op(field_hdl, freq_op, freq_op_size) BIND(C) 
    180       USE ISO_C_BINDING 
    181       INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
    182       CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: freq_op 
    183       INTEGER  (kind = C_INT)     , VALUE        :: freq_op_size 
     179    SUBROUTINE cxios_get_field_freq_op(field_hdl, freq_op) BIND(C) 
     180      USE ISO_C_BINDING 
     181      USE IDATE 
     182      INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
     183      TYPE(txios(duration)) :: freq_op 
    184184    END SUBROUTINE cxios_get_field_freq_op 
    185185     
Note: See TracChangeset for help on using the changeset viewer.