Ignore:
Timestamp:
11/04/15 15:50:20 (8 years ago)
Author:
rlacroix
Message:

Update the Fortran API.

It had been forgotten in recent changes.

File:
1 edited

Legend:

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

    r711 r779  
    1313  SUBROUTINE xios(set_file_attr)  & 
    1414    ( file_id, append, compression_level, description, enabled, format, min_digits, mode, name, name_suffix  & 
    15     , output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq, time_counter  & 
    16     , timeseries, ts_prefix, type ) 
     15    , output_freq, output_level, par_access, record_offset, split_freq, split_freq_format, sync_freq  & 
     16    , time_counter, timeseries, ts_prefix, type ) 
    1717 
    1818    IMPLICIT NONE 
     
    3333      INTEGER  , OPTIONAL, INTENT(IN) :: output_level 
    3434      CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: par_access 
     35      INTEGER  , OPTIONAL, INTENT(IN) :: record_offset 
    3536      TYPE(txios(duration))  , OPTIONAL, INTENT(IN) :: split_freq 
    3637      CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: split_freq_format 
     
    4445      CALL xios(set_file_attr_hdl_)   & 
    4546      ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    46       , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    47       , time_counter, timeseries, ts_prefix, type ) 
     47      , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     48      , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    4849 
    4950  END SUBROUTINE xios(set_file_attr) 
     
    5152  SUBROUTINE xios(set_file_attr_hdl)  & 
    5253    ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    53     , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    54     , time_counter, timeseries, ts_prefix, type ) 
     54    , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     55    , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    5556 
    5657    IMPLICIT NONE 
     
    7071      INTEGER  , OPTIONAL, INTENT(IN) :: output_level 
    7172      CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: par_access 
     73      INTEGER  , OPTIONAL, INTENT(IN) :: record_offset 
    7274      TYPE(txios(duration))  , OPTIONAL, INTENT(IN) :: split_freq 
    7375      CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: split_freq_format 
     
    8082      CALL xios(set_file_attr_hdl_)  & 
    8183      ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    82       , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    83       , time_counter, timeseries, ts_prefix, type ) 
     84      , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     85      , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    8486 
    8587  END SUBROUTINE xios(set_file_attr_hdl) 
     
    8789  SUBROUTINE xios(set_file_attr_hdl_)   & 
    8890    ( file_hdl, append_, compression_level_, description_, enabled_, format_, min_digits_, mode_  & 
    89     , name_, name_suffix_, output_freq_, output_level_, par_access_, split_freq_, split_freq_format_  & 
    90     , sync_freq_, time_counter_, timeseries_, ts_prefix_, type_ ) 
     91    , name_, name_suffix_, output_freq_, output_level_, par_access_, record_offset_, split_freq_  & 
     92    , split_freq_format_, sync_freq_, time_counter_, timeseries_, ts_prefix_, type_ ) 
    9193 
    9294    IMPLICIT NONE 
     
    106108      INTEGER  , OPTIONAL, INTENT(IN) :: output_level_ 
    107109      CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: par_access_ 
     110      INTEGER  , OPTIONAL, INTENT(IN) :: record_offset_ 
    108111      TYPE(txios(duration))  , OPTIONAL, INTENT(IN) :: split_freq_ 
    109112      CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: split_freq_format_ 
     
    164167      ENDIF 
    165168 
     169      IF (PRESENT(record_offset_)) THEN 
     170        CALL cxios_set_file_record_offset(file_hdl%daddr, record_offset_) 
     171      ENDIF 
     172 
    166173      IF (PRESENT(split_freq_)) THEN 
    167174        CALL cxios_set_file_split_freq(file_hdl%daddr, split_freq_) 
     
    196203  SUBROUTINE xios(get_file_attr)  & 
    197204    ( file_id, append, compression_level, description, enabled, format, min_digits, mode, name, name_suffix  & 
    198     , output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq, time_counter  & 
    199     , timeseries, ts_prefix, type ) 
     205    , output_freq, output_level, par_access, record_offset, split_freq, split_freq_format, sync_freq  & 
     206    , time_counter, timeseries, ts_prefix, type ) 
    200207 
    201208    IMPLICIT NONE 
     
    216223      INTEGER  , OPTIONAL, INTENT(OUT) :: output_level 
    217224      CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: par_access 
     225      INTEGER  , OPTIONAL, INTENT(OUT) :: record_offset 
    218226      TYPE(txios(duration))  , OPTIONAL, INTENT(OUT) :: split_freq 
    219227      CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: split_freq_format 
     
    227235      CALL xios(get_file_attr_hdl_)   & 
    228236      ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    229       , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    230       , time_counter, timeseries, ts_prefix, type ) 
     237      , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     238      , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    231239 
    232240  END SUBROUTINE xios(get_file_attr) 
     
    234242  SUBROUTINE xios(get_file_attr_hdl)  & 
    235243    ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    236     , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    237     , time_counter, timeseries, ts_prefix, type ) 
     244    , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     245    , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    238246 
    239247    IMPLICIT NONE 
     
    253261      INTEGER  , OPTIONAL, INTENT(OUT) :: output_level 
    254262      CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: par_access 
     263      INTEGER  , OPTIONAL, INTENT(OUT) :: record_offset 
    255264      TYPE(txios(duration))  , OPTIONAL, INTENT(OUT) :: split_freq 
    256265      CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: split_freq_format 
     
    263272      CALL xios(get_file_attr_hdl_)  & 
    264273      ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    265       , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    266       , time_counter, timeseries, ts_prefix, type ) 
     274      , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     275      , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    267276 
    268277  END SUBROUTINE xios(get_file_attr_hdl) 
     
    270279  SUBROUTINE xios(get_file_attr_hdl_)   & 
    271280    ( file_hdl, append_, compression_level_, description_, enabled_, format_, min_digits_, mode_  & 
    272     , name_, name_suffix_, output_freq_, output_level_, par_access_, split_freq_, split_freq_format_  & 
    273     , sync_freq_, time_counter_, timeseries_, ts_prefix_, type_ ) 
     281    , name_, name_suffix_, output_freq_, output_level_, par_access_, record_offset_, split_freq_  & 
     282    , split_freq_format_, sync_freq_, time_counter_, timeseries_, ts_prefix_, type_ ) 
    274283 
    275284    IMPLICIT NONE 
     
    289298      INTEGER  , OPTIONAL, INTENT(OUT) :: output_level_ 
    290299      CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: par_access_ 
     300      INTEGER  , OPTIONAL, INTENT(OUT) :: record_offset_ 
    291301      TYPE(txios(duration))  , OPTIONAL, INTENT(OUT) :: split_freq_ 
    292302      CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: split_freq_format_ 
     
    347357      ENDIF 
    348358 
     359      IF (PRESENT(record_offset_)) THEN 
     360        CALL cxios_get_file_record_offset(file_hdl%daddr, record_offset_) 
     361      ENDIF 
     362 
    349363      IF (PRESENT(split_freq_)) THEN 
    350364        CALL cxios_get_file_split_freq(file_hdl%daddr, split_freq_) 
     
    379393  SUBROUTINE xios(is_defined_file_attr)  & 
    380394    ( file_id, append, compression_level, description, enabled, format, min_digits, mode, name, name_suffix  & 
    381     , output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq, time_counter  & 
    382     , timeseries, ts_prefix, type ) 
     395    , output_freq, output_level, par_access, record_offset, split_freq, split_freq_format, sync_freq  & 
     396    , time_counter, timeseries, ts_prefix, type ) 
    383397 
    384398    IMPLICIT NONE 
     
    409423      LOGICAL, OPTIONAL, INTENT(OUT) :: par_access 
    410424      LOGICAL(KIND=C_BOOL) :: par_access_tmp 
     425      LOGICAL, OPTIONAL, INTENT(OUT) :: record_offset 
     426      LOGICAL(KIND=C_BOOL) :: record_offset_tmp 
    411427      LOGICAL, OPTIONAL, INTENT(OUT) :: split_freq 
    412428      LOGICAL(KIND=C_BOOL) :: split_freq_tmp 
     
    427443      CALL xios(is_defined_file_attr_hdl_)   & 
    428444      ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    429       , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    430       , time_counter, timeseries, ts_prefix, type ) 
     445      , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     446      , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    431447 
    432448  END SUBROUTINE xios(is_defined_file_attr) 
     
    434450  SUBROUTINE xios(is_defined_file_attr_hdl)  & 
    435451    ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    436     , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    437     , time_counter, timeseries, ts_prefix, type ) 
     452    , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     453    , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    438454 
    439455    IMPLICIT NONE 
     
    463479      LOGICAL, OPTIONAL, INTENT(OUT) :: par_access 
    464480      LOGICAL(KIND=C_BOOL) :: par_access_tmp 
     481      LOGICAL, OPTIONAL, INTENT(OUT) :: record_offset 
     482      LOGICAL(KIND=C_BOOL) :: record_offset_tmp 
    465483      LOGICAL, OPTIONAL, INTENT(OUT) :: split_freq 
    466484      LOGICAL(KIND=C_BOOL) :: split_freq_tmp 
     
    480498      CALL xios(is_defined_file_attr_hdl_)  & 
    481499      ( file_hdl, append, compression_level, description, enabled, format, min_digits, mode, name  & 
    482       , name_suffix, output_freq, output_level, par_access, split_freq, split_freq_format, sync_freq  & 
    483       , time_counter, timeseries, ts_prefix, type ) 
     500      , name_suffix, output_freq, output_level, par_access, record_offset, split_freq, split_freq_format  & 
     501      , sync_freq, time_counter, timeseries, ts_prefix, type ) 
    484502 
    485503  END SUBROUTINE xios(is_defined_file_attr_hdl) 
     
    487505  SUBROUTINE xios(is_defined_file_attr_hdl_)   & 
    488506    ( file_hdl, append_, compression_level_, description_, enabled_, format_, min_digits_, mode_  & 
    489     , name_, name_suffix_, output_freq_, output_level_, par_access_, split_freq_, split_freq_format_  & 
    490     , sync_freq_, time_counter_, timeseries_, ts_prefix_, type_ ) 
     507    , name_, name_suffix_, output_freq_, output_level_, par_access_, record_offset_, split_freq_  & 
     508    , split_freq_format_, sync_freq_, time_counter_, timeseries_, ts_prefix_, type_ ) 
    491509 
    492510    IMPLICIT NONE 
     
    516534      LOGICAL, OPTIONAL, INTENT(OUT) :: par_access_ 
    517535      LOGICAL(KIND=C_BOOL) :: par_access__tmp 
     536      LOGICAL, OPTIONAL, INTENT(OUT) :: record_offset_ 
     537      LOGICAL(KIND=C_BOOL) :: record_offset__tmp 
    518538      LOGICAL, OPTIONAL, INTENT(OUT) :: split_freq_ 
    519539      LOGICAL(KIND=C_BOOL) :: split_freq__tmp 
     
    591611      ENDIF 
    592612 
     613      IF (PRESENT(record_offset_)) THEN 
     614        record_offset__tmp = cxios_is_defined_file_record_offset(file_hdl%daddr) 
     615        record_offset_ = record_offset__tmp 
     616      ENDIF 
     617 
    593618      IF (PRESENT(split_freq_)) THEN 
    594619        split_freq__tmp = cxios_is_defined_file_split_freq(file_hdl%daddr) 
Note: See TracChangeset for help on using the changeset viewer.