Changeset 2782 for trunk/NEMOGCM/EXTERNAL/XMLIO_SERVER
- Timestamp:
- 2011-06-16T09:35:07+02:00 (13 years ago)
- Location:
- trunk/NEMOGCM/EXTERNAL/XMLIO_SERVER/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/EXTERNAL/XMLIO_SERVER/src/IOSERVER/mod_pack.f90
r2767 r2782 542 542 SELECT CASE(attrib%type) 543 543 CASE (integer0) 544 ALLOCATE(attrib%integer0_ptr)544 !!$ ALLOCATE(attrib%integer0_ptr) 545 545 CALL unpack_data(attrib%integer0_ptr) 546 546 CASE (integer1) … … 551 551 CALL unpack_data(attrib%integer2_ptr) 552 552 CASE (real0) 553 ALLOCATE(attrib%real0_ptr)553 !!$ ALLOCATE(attrib%real0_ptr) 554 554 CALL unpack_data(attrib%real0_ptr) 555 555 CASE (real1) … … 559 559 ALLOCATE(attrib%real2_ptr(attrib%dim(1),attrib%dim(2))) 560 560 CASE (logical0) 561 ALLOCATE(attrib%logical0_ptr)561 !!$ ALLOCATE(attrib%logical0_ptr) 562 562 CALL unpack_data(attrib%logical0_ptr) 563 563 CASE (logical1) … … 568 568 CALL unpack_data(attrib%logical2_ptr) 569 569 CASE (string0) 570 ALLOCATE(attrib%string0_ptr)570 !!$ ALLOCATE(attrib%string0_ptr) 571 571 CALL unpack_string0 572 572 CASE (string1) -
trunk/NEMOGCM/EXTERNAL/XMLIO_SERVER/src/XMLIO/mod_attribut.f90
r2281 r2782 11 11 INTEGER :: dim(7) 12 12 INTEGER :: ndim 13 INTEGER ,POINTER:: integer0_ptr13 INTEGER :: integer0_ptr 14 14 INTEGER,POINTER :: integer1_ptr(:) 15 15 INTEGER,POINTER :: integer2_ptr(:,:) 16 REAL ,POINTER:: real0_ptr16 REAL :: real0_ptr 17 17 REAL,POINTER :: real1_ptr(:) 18 18 REAL,POINTER :: real2_ptr(:,:) 19 LOGICAL ,POINTER:: logical0_ptr19 LOGICAL :: logical0_ptr 20 20 LOGICAL,POINTER :: logical1_ptr(:) 21 21 LOGICAL,POINTER :: logical2_ptr(:,:) 22 22 23 CHARACTER(LEN=str_len) ,POINTER:: string0_ptr23 CHARACTER(LEN=str_len) :: string0_ptr 24 24 CHARACTER(LEN=str_len),POINTER :: string1_ptr(:) 25 25 CHARACTER(LEN=str_len),POINTER :: string2_ptr(:,:) … … 81 81 SELECT CASE(attrib%type) 82 82 CASE (integer0) 83 DEALLOCATE(attrib%integer0_ptr)83 !!$ DEALLOCATE(attrib%integer0_ptr) 84 84 CASE (integer1) 85 85 DEALLOCATE(attrib%integer1_ptr) … … 87 87 DEALLOCATE(attrib%integer2_ptr) 88 88 CASE (real0) 89 DEALLOCATE(attrib%real0_ptr)89 !!$ DEALLOCATE(attrib%real0_ptr) 90 90 CASE (real1) 91 91 DEALLOCATE(attrib%real1_ptr) … … 93 93 DEALLOCATE(attrib%real2_ptr) 94 94 CASE (logical0) 95 DEALLOCATE(attrib%logical0_ptr)95 !!$ DEALLOCATE(attrib%logical0_ptr) 96 96 CASE (logical1) 97 97 DEALLOCATE(attrib%logical1_ptr) … … 99 99 DEALLOCATE(attrib%logical2_ptr) 100 100 CASE (string0) 101 DEALLOCATE(attrib%string0_ptr)101 !!$ DEALLOCATE(attrib%string0_ptr) 102 102 CASE (string1) 103 103 DEALLOCATE(attrib%string1_ptr) … … 112 112 IMPLICIT NONE 113 113 INTEGER :: attr_name 114 INTEGER ,TARGET:: value114 INTEGER :: value 115 115 116 116 TYPE(attribut) :: attr_int0 … … 118 118 attr_int0%name=attr_name 119 119 attr_int0%type=integer0 120 attr_int0%integer0_ptr= >value120 attr_int0%integer0_ptr=value 121 121 122 122 END FUNCTION attr_int0 … … 126 126 IMPLICIT NONE 127 127 INTEGER :: attr_name 128 INTEGER,TARGET :: value(:)128 INTEGER,TARGET, INTENT(INOUT) :: value(:) 129 129 130 130 TYPE(attribut) :: attr_int1 … … 140 140 IMPLICIT NONE 141 141 INTEGER :: attr_name 142 INTEGER,TARGET :: value(:,:)142 INTEGER,TARGET, INTENT(INOUT) :: value(:,:) 143 143 144 144 TYPE(attribut) :: attr_int2 … … 155 155 IMPLICIT NONE 156 156 INTEGER :: attr_name 157 REAL ,TARGET:: value157 REAL :: value 158 158 159 159 TYPE(attribut) :: attr_real0 … … 161 161 attr_real0%name=attr_name 162 162 attr_real0%type=real0 163 attr_real0%real0_ptr= >value163 attr_real0%real0_ptr=value 164 164 165 165 END FUNCTION attr_real0 … … 169 169 IMPLICIT NONE 170 170 INTEGER :: attr_name 171 REAL,TARGET :: value(:)171 REAL,TARGET, INTENT(INOUT) :: value(:) 172 172 173 173 TYPE(attribut) :: attr_real1 … … 183 183 IMPLICIT NONE 184 184 INTEGER :: attr_name 185 REAL,TARGET :: value(:,:)185 REAL,TARGET, INTENT(INOUT) :: value(:,:) 186 186 187 187 TYPE(attribut) :: attr_real2 … … 197 197 IMPLICIT NONE 198 198 INTEGER :: attr_name 199 LOGICAL ,TARGET:: value199 LOGICAL :: value 200 200 201 201 TYPE(attribut) :: attr_logical0 … … 203 203 attr_logical0%name=attr_name 204 204 attr_logical0%type=logical0 205 attr_logical0%logical0_ptr= >value205 attr_logical0%logical0_ptr=value 206 206 207 207 END FUNCTION attr_logical0 … … 211 211 IMPLICIT NONE 212 212 INTEGER :: attr_name 213 LOGICAL,TARGET :: value(:)213 LOGICAL,TARGET, INTENT(INOUT) :: value(:) 214 214 215 215 TYPE(attribut) :: attr_logical1 … … 225 225 IMPLICIT NONE 226 226 INTEGER :: attr_name 227 LOGICAL,TARGET :: value(:,:)227 LOGICAL,TARGET, INTENT(INOUT) :: value(:,:) 228 228 229 229 TYPE(attribut) :: attr_logical2 … … 240 240 IMPLICIT NONE 241 241 INTEGER :: attr_name 242 CHARACTER(LEN=*) ,TARGET:: value242 CHARACTER(LEN=*) :: value 243 243 TYPE(attribut) :: attr_string0 244 244 … … 246 246 attr_string0%name=attr_name 247 247 attr_string0%type=string0 248 attr_string0%string_len=LEN (value)249 attr_string0%string0_ptr= >value248 attr_string0%string_len=LEN_TRIM(value) 249 attr_string0%string0_ptr=value 250 250 251 251 END FUNCTION attr_string0 … … 255 255 IMPLICIT NONE 256 256 INTEGER :: attr_name 257 CHARACTER(LEN=*),TARGET :: value(:)257 CHARACTER(LEN=*),TARGET, INTENT(INOUT) :: value(:) 258 258 259 259 TYPE(attribut) :: attr_string1 … … 270 270 IMPLICIT NONE 271 271 INTEGER :: attr_name 272 CHARACTER(LEN=*),TARGET :: value(:,:)272 CHARACTER(LEN=*),TARGET, INTENT(INOUT) :: value(:,:) 273 273 274 274 TYPE(attribut) :: attr_string2
Note: See TracChangeset
for help on using the changeset viewer.