Changeset 3488
- Timestamp:
- Apr 26, 2019, 1:41:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/iophy.F90
r3474 r3488 1067 1067 ENDIF 1068 1068 ELSE IF (grid_type==unstructured) THEN 1069 CALL xios_send_field(var%name, buffer_omp) 1069 IF (SIZE(field) == klon) then 1070 CALL xios_send_field(var%name, buffer_omp) 1071 ELSE 1072 CALL xios_send_field(var%name, field) 1073 ENDIF 1074 1070 1075 ENDIF 1071 1076 IF (prt_level >= 10) THEN … … 1094 1099 ENDIF 1095 1100 ELSE IF (grid_type==unstructured) THEN 1096 CALL xios_send_field(var%name, buffer_omp) 1101 IF (SIZE(field) == klon) then 1102 CALL xios_send_field(var%name, buffer_omp) 1103 ELSE 1104 CALL xios_send_field(var%name, field) 1105 ENDIF 1097 1106 ENDIF 1098 1107 … … 1248 1257 ENDIF 1249 1258 ELSE IF (grid_type==unstructured) THEN 1250 CALL xios_send_field(var%name, buffer_omp(:,1:nlevx)) 1259 IF (SIZE(field,1) == klon) then 1260 CALL xios_send_field(var%name, buffer_omp(:,1:nlevx)) 1261 ELSE 1262 CALL xios_send_field(var%name, field) 1263 ENDIF 1251 1264 ENDIF 1252 1265 … … 1274 1287 ENDIF 1275 1288 ELSE IF (grid_type==unstructured) THEN 1276 CALL xios_send_field(var%name, buffer_omp(:,1:nlevx)) 1289 IF (SIZE(field,1) == klon) then 1290 CALL xios_send_field(var%name, buffer_omp(:,1:nlevx)) 1291 ELSE 1292 CALL xios_send_field(var%name, field) 1293 ENDIF 1277 1294 ENDIF 1278 1295 … … 1362 1379 !Et sinon on.... écrit 1363 1380 IF (SIZE(field)/=klon .AND. SIZE(field)/=klev .AND. SIZE(field)/=klev+1) CALL abort_physic('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon/klev',1) 1364 1365 1381 IF (SIZE(field) == klev .OR. SIZE(field) == klev+1) then 1366 1382 !$OMP MASTER 1383 1367 1384 CALL xios_send_field(field_name,field) 1368 1385 !$OMP END MASTER
Note: See TracChangeset
for help on using the changeset viewer.