Changeset 1040
- Timestamp:
- 02/01/17 10:10:37 (6 years ago)
- Location:
- XIOS/trunk/src/interface/fortran_attr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/fortran_attr/iinterpolate_domain_attr.F90
r1005 r1040 12 12 13 13 SUBROUTINE xios(set_interpolate_domain_attr) & 14 ( interpolate_domain_id, file,mode, order, renormalize, weight_filename, write_weight )14 ( interpolate_domain_id, mode, order, renormalize, weight_filename, write_weight ) 15 15 16 16 IMPLICIT NONE 17 17 TYPE(txios(interpolate_domain)) :: interpolate_domain_hdl 18 18 CHARACTER(LEN=*), INTENT(IN) ::interpolate_domain_id 19 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file20 19 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 21 20 INTEGER , OPTIONAL, INTENT(IN) :: order … … 29 28 (interpolate_domain_id,interpolate_domain_hdl) 30 29 CALL xios(set_interpolate_domain_attr_hdl_) & 31 ( interpolate_domain_hdl, file,mode, order, renormalize, weight_filename, write_weight )30 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 32 31 33 32 END SUBROUTINE xios(set_interpolate_domain_attr) 34 33 35 34 SUBROUTINE xios(set_interpolate_domain_attr_hdl) & 36 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 37 38 IMPLICIT NONE 39 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 40 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file 35 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 36 37 IMPLICIT NONE 38 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 41 39 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode 42 40 INTEGER , OPTIONAL, INTENT(IN) :: order … … 48 46 49 47 CALL xios(set_interpolate_domain_attr_hdl_) & 50 ( interpolate_domain_hdl, file,mode, order, renormalize, weight_filename, write_weight )48 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 51 49 52 50 END SUBROUTINE xios(set_interpolate_domain_attr_hdl) 53 51 54 52 SUBROUTINE xios(set_interpolate_domain_attr_hdl_) & 55 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 56 ) 57 58 IMPLICIT NONE 59 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 60 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: file_ 53 ( interpolate_domain_hdl, mode_, order_, renormalize_, weight_filename_, write_weight_ ) 54 55 IMPLICIT NONE 56 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 61 57 CHARACTER(len = *) , OPTIONAL, INTENT(IN) :: mode_ 62 58 INTEGER , OPTIONAL, INTENT(IN) :: order_ … … 67 63 LOGICAL (KIND=C_BOOL) :: write_weight__tmp 68 64 69 IF (PRESENT(file_)) THEN70 CALL cxios_set_interpolate_domain_file &71 (interpolate_domain_hdl%daddr, file_, len(file_))72 ENDIF73 74 65 IF (PRESENT(mode_)) THEN 75 66 CALL cxios_set_interpolate_domain_mode & … … 102 93 103 94 SUBROUTINE xios(get_interpolate_domain_attr) & 104 ( interpolate_domain_id, file,mode, order, renormalize, weight_filename, write_weight )95 ( interpolate_domain_id, mode, order, renormalize, weight_filename, write_weight ) 105 96 106 97 IMPLICIT NONE 107 98 TYPE(txios(interpolate_domain)) :: interpolate_domain_hdl 108 99 CHARACTER(LEN=*), INTENT(IN) ::interpolate_domain_id 109 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file110 100 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 111 101 INTEGER , OPTIONAL, INTENT(OUT) :: order … … 119 109 (interpolate_domain_id,interpolate_domain_hdl) 120 110 CALL xios(get_interpolate_domain_attr_hdl_) & 121 ( interpolate_domain_hdl, file,mode, order, renormalize, weight_filename, write_weight )111 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 122 112 123 113 END SUBROUTINE xios(get_interpolate_domain_attr) 124 114 125 115 SUBROUTINE xios(get_interpolate_domain_attr_hdl) & 126 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 127 128 IMPLICIT NONE 129 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 130 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file 116 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 117 118 IMPLICIT NONE 119 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 131 120 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode 132 121 INTEGER , OPTIONAL, INTENT(OUT) :: order … … 138 127 139 128 CALL xios(get_interpolate_domain_attr_hdl_) & 140 ( interpolate_domain_hdl, file,mode, order, renormalize, weight_filename, write_weight )129 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 141 130 142 131 END SUBROUTINE xios(get_interpolate_domain_attr_hdl) 143 132 144 133 SUBROUTINE xios(get_interpolate_domain_attr_hdl_) & 145 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 146 ) 147 148 IMPLICIT NONE 149 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 150 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: file_ 134 ( interpolate_domain_hdl, mode_, order_, renormalize_, weight_filename_, write_weight_ ) 135 136 IMPLICIT NONE 137 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 151 138 CHARACTER(len = *) , OPTIONAL, INTENT(OUT) :: mode_ 152 139 INTEGER , OPTIONAL, INTENT(OUT) :: order_ … … 157 144 LOGICAL (KIND=C_BOOL) :: write_weight__tmp 158 145 159 IF (PRESENT(file_)) THEN160 CALL cxios_get_interpolate_domain_file &161 (interpolate_domain_hdl%daddr, file_, len(file_))162 ENDIF163 164 146 IF (PRESENT(mode_)) THEN 165 147 CALL cxios_get_interpolate_domain_mode & … … 192 174 193 175 SUBROUTINE xios(is_defined_interpolate_domain_attr) & 194 ( interpolate_domain_id, file,mode, order, renormalize, weight_filename, write_weight )176 ( interpolate_domain_id, mode, order, renormalize, weight_filename, write_weight ) 195 177 196 178 IMPLICIT NONE 197 179 TYPE(txios(interpolate_domain)) :: interpolate_domain_hdl 198 180 CHARACTER(LEN=*), INTENT(IN) ::interpolate_domain_id 199 LOGICAL, OPTIONAL, INTENT(OUT) :: file200 LOGICAL(KIND=C_BOOL) :: file_tmp201 181 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 202 182 LOGICAL(KIND=C_BOOL) :: mode_tmp … … 213 193 (interpolate_domain_id,interpolate_domain_hdl) 214 194 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 215 ( interpolate_domain_hdl, file,mode, order, renormalize, weight_filename, write_weight )195 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 216 196 217 197 END SUBROUTINE xios(is_defined_interpolate_domain_attr) 218 198 219 199 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) & 220 ( interpolate_domain_hdl, file, mode, order, renormalize, weight_filename, write_weight ) 221 222 IMPLICIT NONE 223 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 224 LOGICAL, OPTIONAL, INTENT(OUT) :: file 225 LOGICAL(KIND=C_BOOL) :: file_tmp 200 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 201 202 IMPLICIT NONE 203 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 226 204 LOGICAL, OPTIONAL, INTENT(OUT) :: mode 227 205 LOGICAL(KIND=C_BOOL) :: mode_tmp … … 236 214 237 215 CALL xios(is_defined_interpolate_domain_attr_hdl_) & 238 ( interpolate_domain_hdl, file,mode, order, renormalize, weight_filename, write_weight )216 ( interpolate_domain_hdl, mode, order, renormalize, weight_filename, write_weight ) 239 217 240 218 END SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl) 241 219 242 220 SUBROUTINE xios(is_defined_interpolate_domain_attr_hdl_) & 243 ( interpolate_domain_hdl, file_, mode_, order_, renormalize_, weight_filename_, write_weight_ & 244 ) 245 246 IMPLICIT NONE 247 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 248 LOGICAL, OPTIONAL, INTENT(OUT) :: file_ 249 LOGICAL(KIND=C_BOOL) :: file__tmp 221 ( interpolate_domain_hdl, mode_, order_, renormalize_, weight_filename_, write_weight_ ) 222 223 IMPLICIT NONE 224 TYPE(txios(interpolate_domain)) , INTENT(IN) :: interpolate_domain_hdl 250 225 LOGICAL, OPTIONAL, INTENT(OUT) :: mode_ 251 226 LOGICAL(KIND=C_BOOL) :: mode__tmp … … 259 234 LOGICAL(KIND=C_BOOL) :: write_weight__tmp 260 235 261 IF (PRESENT(file_)) THEN262 file__tmp = cxios_is_defined_interpolate_domain_file &263 (interpolate_domain_hdl%daddr)264 file_ = file__tmp265 ENDIF266 267 236 IF (PRESENT(mode_)) THEN 268 237 mode__tmp = cxios_is_defined_interpolate_domain_mode & -
XIOS/trunk/src/interface/fortran_attr/interpolate_domain_interface_attr.F90
r1005 r1040 9 9 INTERFACE 10 10 ! Do not call directly / interface FORTRAN 2003 <-> C99 11 12 SUBROUTINE cxios_set_interpolate_domain_file(interpolate_domain_hdl, file, file_size) BIND(C)13 USE ISO_C_BINDING14 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl15 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: file16 INTEGER (kind = C_INT) , VALUE :: file_size17 END SUBROUTINE cxios_set_interpolate_domain_file18 19 SUBROUTINE cxios_get_interpolate_domain_file(interpolate_domain_hdl, file, file_size) BIND(C)20 USE ISO_C_BINDING21 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl22 CHARACTER(kind = C_CHAR) , DIMENSION(*) :: file23 INTEGER (kind = C_INT) , VALUE :: file_size24 END SUBROUTINE cxios_get_interpolate_domain_file25 26 FUNCTION cxios_is_defined_interpolate_domain_file(interpolate_domain_hdl) BIND(C)27 USE ISO_C_BINDING28 LOGICAL(kind=C_BOOL) :: cxios_is_defined_interpolate_domain_file29 INTEGER (kind = C_INTPTR_T), VALUE :: interpolate_domain_hdl30 END FUNCTION cxios_is_defined_interpolate_domain_file31 32 11 33 12 SUBROUTINE cxios_set_interpolate_domain_mode(interpolate_domain_hdl, mode, mode_size) BIND(C)
Note: See TracChangeset
for help on using the changeset viewer.