Changeset 275
- Timestamp:
- 09/16/11 11:18:56 (12 years ago)
- Location:
- XMLIO_V2/dev/common/src/xmlio/fortran
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/common/src/xmlio/fortran/fieldgroup_interface.f90
r274 r275 98 98 END SUBROUTINE xios_set_fieldgroup_default_value 99 99 100 SUBROUTINE xios_ domaingroup_handle_create(ret, idt, idt_size) BIND(C)100 SUBROUTINE xios_fieldgroup_handle_create(ret, idt, idt_size) BIND(C) 101 101 import C_CHAR, C_INTPTR_T, C_INT 102 102 INTEGER (kind = C_INTPTR_T) :: ret 103 103 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: idt 104 104 INTEGER (kind = C_INT) , VALUE :: idt_size 105 END SUBROUTINE xios_ domaingroup_handle_create105 END SUBROUTINE xios_fieldgroup_handle_create 106 106 107 107 END INTERFACE -
XMLIO_V2/dev/common/src/xmlio/fortran/file_interface.f90
r274 r275 17 17 INTEGER (kind = C_INT) , VALUE :: description_size 18 18 END SUBROUTINE xios_set_file_description 19 20 SUBROUTINE xios_set_file_name_suffix(file_hdl, name_suffix, name_suffix_size) BIND(C) 21 USE ISO_C_BINDING 22 INTEGER (kind = C_INTPTR_T), VALUE :: file_hdl 23 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: name_suffix 24 INTEGER (kind = C_INT) , VALUE :: name_suffix_size 25 END SUBROUTINE xios_set_file_name_suffix 19 26 20 27 SUBROUTINE xios_set_file_output_freq(file_hdl, output_freq, output_freq_size) BIND(C) -
XMLIO_V2/dev/common/src/xmlio/fortran/filegroup_interface.f90
r274 r275 17 17 INTEGER (kind = C_INT) , VALUE :: description_size 18 18 END SUBROUTINE xios_set_filegroup_description 19 20 SUBROUTINE xios_set_filegroup_name_suffix(filegroup_hdl, name_suffix ,name_suffix_size) BIND(C) 21 USE ISO_C_BINDING 22 INTEGER (kind = C_INTPTR_T), VALUE :: filegroup_hdl 23 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: name_suffix 24 INTEGER (kind = C_INT) , VALUE :: name_suffix_size 25 END SUBROUTINE xios_set_filegroup_name_suffix 19 26 20 27 SUBROUTINE xios_set_filegroup_output_freq(filegroup_hdl, output_freq ,output_freq_size) BIND(C) -
XMLIO_V2/dev/common/src/xmlio/fortran/icfile.cpp
r274 r275 41 41 } 42 42 43 void xios_set_file_name_suffix(XFilePtr file_hdl, const char * name_suffix, int name_suffix_size) 44 { 45 std::string name_suffix_str; 46 if (!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; 47 48 file_hdl->name_suffix.setValue(name_suffix_str); 49 } 50 43 51 void xios_set_file_output_freq(XFilePtr file_hdl, const char * output_freq, int output_freq_size) 44 52 { … … 76 84 77 85 filegroup_hdl->description.setValue(description_str); 86 } 87 88 void xios_set_filegroup_name_suffix(XFileGroupPtr filegroup_hdl, const char * name_suffix, int name_suffix_size) 89 { 90 std::string name_suffix_str; 91 if (!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; 92 93 filegroup_hdl->name_suffix.setValue(name_suffix_str); 78 94 } 79 95 -
XMLIO_V2/dev/common/src/xmlio/fortran/idata.f90
r274 r275 70 70 END INTERFACE 71 71 72 INTERFACE write_data 73 MODULE PROCEDURE write_data_k81,write_data_k82,write_data_k83,write_data_k41,write_data_k42,write_data_k43 74 END INTERFACE 75 72 76 CONTAINS ! Fonctions disponibles pour les utilisateurs. 73 77 … … 78 82 79 83 SUBROUTINE dtreatment_start(context_hdl, filetype, comm_client_server, comm_server) 80 TYPE(XContextHandle), INTENT(IN) , VALUE:: context_hdl84 TYPE(XContextHandle), INTENT(IN) :: context_hdl 81 85 INTEGER , INTENT(IN), OPTIONAL :: filetype , comm_client_server , comm_server 82 86 INTEGER :: filetype_, comm_client_server_, comm_server_ … … 101 105 102 106 SUBROUTINE dtreatment_end(context_hdl) 103 TYPE(XContextHandle), INTENT(IN), VALUE:: context_hdl107 TYPE(XContextHandle), INTENT(IN), OPTIONAL :: context_hdl 104 108 CALL context_set_current(context_hdl) 105 109 CALL xios_dtreatment_end() -
XMLIO_V2/dev/common/src/xmlio/fortran/idomain.f90
r274 r275 25 25 26 26 SUBROUTINE set_domaingroup_attributes_id & 27 ( domaingroup_id, name_, standard_name_, long_name_, domain group_group_ref_, ni_glo_, nj_glo_, ibegin_, iend_,&27 ( domaingroup_id, name_, standard_name_, long_name_, domain_group_ref_, ni_glo_, nj_glo_, ibegin_, iend_, & 28 28 ni_, jbegin_, jend_, nj_, mask_, data_dim_, data_ni_, data_nj_, data_ibegin_, data_jbegin_, & 29 29 zoom_ni_, zoom_nj_, zoom_ibegin_, zoom_jbegin_, zoom_ni_loc_, zoom_nj_loc_, zoom_ibegin_loc_, & 30 30 zoom_jbegin_loc_, data_n_index_, data_i_index_, data_j_index_, lonvalue_, latvalue_) 31 31 IMPLICIT NONE 32 TYPE(XDomainGroupHandle) 32 TYPE(XDomainGroupHandle) :: domaingroup_hdl 33 33 CHARACTER(len = *) , INTENT(IN) :: domaingroup_id 34 34 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: name_ 35 35 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name_ 36 36 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name_ 37 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: domain group_group_ref_37 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: domain_group_ref_ 38 38 INTEGER , OPTIONAL, INTENT(IN) :: ni_glo_ 39 39 INTEGER , OPTIONAL, INTENT(IN) :: nj_glo_ … … 66 66 CALL domaingroup_handle_create(domaingroup_hdl, domaingroup_id) 67 67 CALL set_domaingroup_attributes_hdl & 68 ( domaingroup_hdl, name_, standard_name_, long_name_, domain group_group_ref_, ni_glo_, nj_glo_, ibegin_, iend_,&68 ( domaingroup_hdl, name_, standard_name_, long_name_, domain_group_ref_, ni_glo_, nj_glo_, ibegin_, iend_, & 69 69 ni_, jbegin_, jend_, nj_, mask_, data_dim_, data_ni_, data_nj_, data_ibegin_, data_jbegin_, & 70 70 zoom_ni_, zoom_nj_, zoom_ibegin_, zoom_jbegin_, zoom_ni_loc_, zoom_nj_loc_, zoom_ibegin_loc_, & … … 74 74 75 75 SUBROUTINE set_domaingroup_attributes_hdl & 76 ( domaingroup_hdl,name_, standard_name_, long_name_, domain group_group_ref_, ni_glo_, nj_glo_, ibegin_, iend_,&76 ( domaingroup_hdl,name_, standard_name_, long_name_, domain_group_ref_, ni_glo_, nj_glo_, ibegin_, iend_, & 77 77 ni_, jbegin_, jend_, nj_, mask_, data_dim_, data_ni_, data_nj_, data_ibegin_, data_jbegin_, & 78 78 zoom_ni_, zoom_nj_, zoom_ibegin_, zoom_jbegin_, zoom_ni_loc_, zoom_nj_loc_, zoom_ibegin_loc_, & … … 83 83 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: standard_name_ 84 84 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: long_name_ 85 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: domain group_group_ref_85 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: domain_group_ref_ 86 86 INTEGER , OPTIONAL, INTENT(IN) :: ni_glo_ 87 87 INTEGER , OPTIONAL, INTENT(IN) :: nj_glo_ … … 122 122 CALL xios_set_domaingroup_long_name(domaingroup_hdl%daddr, long_name_, len(long_name_)) 123 123 END IF 124 IF (PRESENT(domain group_group_ref_)) THEN125 CALL xios_set_domaingroup_domain group_group_ref(domaingroup_hdl%daddr, domaingroup_group_ref_, len(domaingroup_group_ref_))124 IF (PRESENT(domain_group_ref_)) THEN 125 CALL xios_set_domaingroup_domain_group_ref(domaingroup_hdl%daddr, domain_group_ref_, len(domain_group_ref_)) 126 126 END IF 127 127 IF (PRESENT(ni_glo_)) THEN -
XMLIO_V2/dev/common/src/xmlio/fortran/ifield.f90
r274 r275 26 26 SUBROUTINE set_fieldgroup_attributes_id & 27 27 (fieldgroup_id, name_, standard_name_, long_name_, unit_, operation_, freq_op_, level_, & 28 prec_, enabled_, domain_ref_, axis_ref_, grid_ref_, field group_ref_, default_value_)28 prec_, enabled_, domain_ref_, axis_ref_, grid_ref_, field_ref_, default_value_) 29 29 30 30 IMPLICIT NONE … … 43 43 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref_ 44 44 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: grid_ref_ 45 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field group_ref_45 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref_ 46 46 REAL(kind=8) , OPTIONAL, INTENT(IN) :: default_value_ 47 47 … … 49 49 CALL set_fieldgroup_attributes_hdl & 50 50 (fieldgroup_hdl, name_, standard_name_, long_name_, unit_, operation_, freq_op_, level_, & 51 prec_, enabled_, domain_ref_, axis_ref_, grid_ref_, field group_ref_, default_value_)51 prec_, enabled_, domain_ref_, axis_ref_, grid_ref_, field_ref_, default_value_) 52 52 53 53 END SUBROUTINE set_fieldgroup_attributes_id … … 55 55 SUBROUTINE set_fieldgroup_attributes_hdl & 56 56 (fieldgroup_hdl, name_, standard_name_, long_name_, unit_, operation_, freq_op_, level_, & 57 prec_, enabled_, domain_ref_, axis_ref_, grid_ref_, field group_ref_, default_value_)57 prec_, enabled_, domain_ref_, axis_ref_, grid_ref_, field_ref_, default_value_) 58 58 IMPLICIT NONE 59 59 TYPE(XFieldgroupHandle) , INTENT(IN) :: fieldgroup_hdl … … 71 71 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: axis_ref_ 72 72 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: grid_ref_ 73 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field group_ref_73 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: field_ref_ 74 74 REAL(kind=8) , OPTIONAL, INTENT(IN) :: default_value_ 75 75 … … 111 111 CALL xios_set_fieldgroup_grid_ref(fieldgroup_hdl%daddr, grid_ref_, len(grid_ref_)) 112 112 END IF 113 IF (PRESENT(field group_ref_)) THEN114 CALL xios_set_fieldgroup_field group_ref(fieldgroup_hdl%daddr, fieldgroup_ref_, len(fieldgroup_ref_))113 IF (PRESENT(field_ref_)) THEN 114 CALL xios_set_fieldgroup_field_ref(fieldgroup_hdl%daddr, field_ref_, len(field_ref_)) 115 115 END IF 116 116 IF (PRESENT(default_value_)) THEN -
XMLIO_V2/dev/common/src/xmlio/fortran/ifile.f90
r274 r275 24 24 CONTAINS ! Fonctions disponibles pour les utilisateurs. 25 25 26 SUBROUTINE set_file_attributes_id(file_id, name_ , description_, output_freq_, output_level_, enabled_)26 SUBROUTINE set_file_attributes_id(file_id, name_ , description_, name_suffix_, output_freq_, output_level_, enabled_) 27 27 IMPLICIT NONE 28 28 TYPE(XFileHandle) :: file_hdl … … 30 30 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_ 31 31 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: description_ 32 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_suffix_ 32 33 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: output_freq_ 33 34 INTEGER , OPTIONAL, INTENT(IN) :: output_level_ … … 35 36 36 37 CALL file_handle_create(file_hdl, file_id) 37 CALL set_file_attributes_hdl(file_hdl, name_ , description_, output_freq_, output_level_, enabled_)38 CALL set_file_attributes_hdl(file_hdl, name_ , description_, name_suffix_, output_freq_, output_level_, enabled_) 38 39 39 40 END SUBROUTINE set_file_attributes_id 40 41 41 SUBROUTINE set_file_attributes_hdl(file_hdl, name_ , description_, output_freq_, output_level_, enabled_)42 SUBROUTINE set_file_attributes_hdl(file_hdl, name_ , description_, name_suffix_, output_freq_, output_level_, enabled_) 42 43 TYPE(XFileHandle) , INTENT(IN) :: file_hdl 43 44 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_ 44 45 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: description_ 46 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_suffix_ 45 47 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: output_freq_ 46 48 INTEGER , OPTIONAL, INTENT(IN) :: output_level_ … … 54 56 IF (PRESENT(description_)) THEN 55 57 CALL xios_set_file_description(file_hdl%daddr, description_, len(description_)) 58 END IF 59 IF (PRESENT(name_suffix_)) THEN 60 CALL xios_set_file_name_suffix(file_hdl%daddr, name_suffix_, len(name_suffix_)) 56 61 END IF 57 62 IF (PRESENT(output_freq_)) THEN … … 67 72 END SUBROUTINE set_file_attributes_hdl 68 73 69 SUBROUTINE set_filegroup_attributes_id(filegroup_id, name_ , description_, output_freq_, output_level_, enabled_)74 SUBROUTINE set_filegroup_attributes_id(filegroup_id, name_ , description_, name_suffix_, output_freq_, output_level_, enabled_) 70 75 IMPLICIT NONE 71 76 TYPE(XFileGroupHandle) :: filegroup_hdl … … 73 78 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_ 74 79 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: description_ 80 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_suffix_ 75 81 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: output_freq_ 76 82 INTEGER , OPTIONAL, INTENT(IN) :: output_level_ … … 78 84 79 85 CALL filegroup_handle_create(filegroup_hdl, filegroup_id) 80 CALL set_filegroup_attributes_hdl(filegroup_hdl, name_ , description_, output_freq_, output_level_, enabled_)86 CALL set_filegroup_attributes_hdl(filegroup_hdl, name_ , description_, name_suffix_, output_freq_, output_level_, enabled_) 81 87 82 88 END SUBROUTINE set_filegroup_attributes_id 83 89 84 SUBROUTINE set_filegroup_attributes_hdl(filegroup_hdl, name_ , description_, output_freq_, output_level_, enabled_)90 SUBROUTINE set_filegroup_attributes_hdl(filegroup_hdl, name_ , description_, name_suffix_, output_freq_, output_level_, enabled_) 85 91 IMPLICIT NONE 86 92 TYPE(XFileGroupHandle) , INTENT(IN) :: filegroup_hdl 87 93 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_ 88 94 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: description_ 95 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: name_suffix_ 89 96 CHARACTER(len = *), OPTIONAL, INTENT(IN) :: output_freq_ 90 97 INTEGER , OPTIONAL, INTENT(IN) :: output_level_ … … 98 105 IF (PRESENT(description_)) THEN 99 106 CALL xios_set_filegroup_description(filegroup_hdl%daddr, description_, len(description_)) 107 END IF 108 IF (PRESENT(name_suffix_)) THEN 109 CALL xios_set_filegroup_name_suffix(filegroup_hdl%daddr, name_suffix_, len(name_suffix_)) 100 110 END IF 101 111 IF (PRESENT(output_freq_)) THEN
Note: See TracChangeset
for help on using the changeset viewer.