Ignore:
Timestamp:
05/26/15 16:13:47 (9 years ago)
Author:
rlacroix
Message:

Add the infrastructure to request fields from the server.

This will be used to read input files so add a new file attribute mode to define whether data is written or read from a file.

Currently the data is not actually read and random data is transfered for those fields in read mode.

File:
1 edited

Legend:

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

    r581 r598  
    109109 
    110110 
     111    SUBROUTINE cxios_set_file_mode(file_hdl, mode, mode_size) BIND(C) 
     112      USE ISO_C_BINDING 
     113      INTEGER (kind = C_INTPTR_T), VALUE :: file_hdl 
     114      CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: mode 
     115      INTEGER  (kind = C_INT)     , VALUE        :: mode_size 
     116    END SUBROUTINE cxios_set_file_mode 
     117 
     118    SUBROUTINE cxios_get_file_mode(file_hdl, mode, mode_size) BIND(C) 
     119      USE ISO_C_BINDING 
     120      INTEGER (kind = C_INTPTR_T), VALUE :: file_hdl 
     121      CHARACTER(kind = C_CHAR)    , DIMENSION(*) :: mode 
     122      INTEGER  (kind = C_INT)     , VALUE        :: mode_size 
     123    END SUBROUTINE cxios_get_file_mode 
     124 
     125    FUNCTION cxios_is_defined_file_mode(file_hdl) BIND(C) 
     126      USE ISO_C_BINDING 
     127      LOGICAL(kind=C_BOOL) :: cxios_is_defined_file_mode 
     128      INTEGER (kind = C_INTPTR_T), VALUE :: file_hdl 
     129    END FUNCTION cxios_is_defined_file_mode 
     130 
     131 
    111132    SUBROUTINE cxios_set_file_name(file_hdl, name, name_size) BIND(C) 
    112133      USE ISO_C_BINDING 
Note: See TracChangeset for help on using the changeset viewer.