Changeset 4255 for LMDZ6/trunk/libf
- Timestamp:
- Sep 20, 2022, 4:09:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/guide_mod.F90
r4254 r4255 69 69 SUBROUTINE guide_init 70 70 71 use netcdf, only: nf90_noerr 71 72 USE control_mod, ONLY: day_step 72 73 USE serre_mod, ONLY: grossismx … … 173 174 if (ncidpl.eq.-99) then 174 175 rcod=nf90_open('apbp.nc',Nf90_NOWRITe, ncidpl) 175 if (rcod.NE.NF _NOERR) THEN176 if (rcod.NE.NF90_NOERR) THEN 176 177 abort_message=' Nudging error -> no file apbp.nc' 177 178 CALL abort_gcm(modname,abort_message,1) … … 181 182 if (ncidpl.EQ.-99) then 182 183 rcod=nf90_open('P.nc',Nf90_NOWRITe,ncidpl) 183 if (rcod.NE.NF _NOERR) THEN184 if (rcod.NE.NF90_NOERR) THEN 184 185 abort_message=' Nudging error -> no file P.nc' 185 186 CALL abort_gcm(modname,abort_message,1) … … 190 191 if (ncidpl.eq.-99) then 191 192 rcod=nf90_open('u.nc',Nf90_NOWRITe,ncidpl) 192 if (rcod.NE.NF _NOERR) THEN193 if (rcod.NE.NF90_NOERR) THEN 193 194 CALL abort_gcm(modname, & 194 195 ' Nudging error -> no file u.nc',1) … … 199 200 if (ncidpl.eq.-99) then 200 201 rcod=nf90_open('v.nc',nf90_nowrite,ncidpl) 201 if (rcod.NE.NF _NOERR) THEN202 if (rcod.NE.NF90_NOERR) THEN 202 203 CALL abort_gcm(modname, & 203 204 ' Nudging error -> no file v.nc',1) … … 207 208 if (ncidpl.eq.-99) then 208 209 rcod=nf90_open('T.nc',nf90_nowrite,ncidpl) 209 if (rcod.NE.NF _NOERR) THEN210 if (rcod.NE.NF90_NOERR) THEN 210 211 CALL abort_gcm(modname, & 211 212 ' Nudging error -> no file T.nc',1) … … 215 216 if (ncidpl.eq.-99) then 216 217 rcod=nf90_open('hur.nc',nf90_nowrite, ncidpl) 217 if (rcod.NE.NF _NOERR) THEN218 if (rcod.NE.NF90_NOERR) THEN 218 219 CALL abort_gcm(modname, & 219 220 ' Nudging error -> no file hur.nc',1) … … 224 225 endif 225 226 error=NF_INQ_DIMID(ncidpl,'LEVEL',rid) 226 IF (error.NE.NF _NOERR) error=NF_INQ_DIMID(ncidpl,'PRESSURE',rid)227 IF (error.NE.NF _NOERR) THEN227 IF (error.NE.NF90_NOERR) error=NF_INQ_DIMID(ncidpl,'PRESSURE',rid) 228 IF (error.NE.NF90_NOERR) THEN 228 229 CALL abort_gcm(modname,'Nudging: error reading pressure levels',1) 229 230 ENDIF … … 1082 1083 SUBROUTINE guide_read(timestep) 1083 1084 1084 use netcdf, only: NF90_GET_VAR 1085 use netcdf, only: NF90_GET_VAR, nf90_noerr 1085 1086 1086 1087 IMPLICIT NONE … … 1114 1115 write(*,*) trim(modname)//' Reading nudging on model levels' 1115 1116 rcode = nf90_open('apbp.nc', nf90_nowrite, ncidpl) 1116 IF (rcode.NE.NF _NOERR) THEN1117 IF (rcode.NE.NF90_NOERR) THEN 1117 1118 abort_message='Nudging: error -> no file apbp.nc' 1118 1119 CALL abort_gcm(modname,abort_message,1) 1119 1120 ENDIF 1120 1121 rcode = nf90_inq_varid(ncidpl, 'AP', varidap) 1121 IF (rcode.NE.NF _NOERR) THEN1122 IF (rcode.NE.NF90_NOERR) THEN 1122 1123 abort_message='Nudging: error -> no AP variable in file apbp.nc' 1123 1124 CALL abort_gcm(modname,abort_message,1) 1124 1125 ENDIF 1125 1126 rcode = nf90_inq_varid(ncidpl, 'BP', varidbp) 1126 IF (rcode.NE.NF _NOERR) THEN1127 IF (rcode.NE.NF90_NOERR) THEN 1127 1128 abort_message='Nudging: error -> no BP variable in file apbp.nc' 1128 1129 CALL abort_gcm(modname,abort_message,1) … … 1134 1135 if (guide_plevs.EQ.2) then 1135 1136 rcode = nf90_open('P.nc', nf90_nowrite, ncidp) 1136 IF (rcode.NE.NF _NOERR) THEN1137 IF (rcode.NE.NF90_NOERR) THEN 1137 1138 abort_message='Nudging: error -> no file P.nc' 1138 1139 CALL abort_gcm(modname,abort_message,1) 1139 1140 ENDIF 1140 1141 rcode = nf90_inq_varid(ncidp, 'PRES', varidp) 1141 IF (rcode.NE.NF _NOERR) THEN1142 IF (rcode.NE.NF90_NOERR) THEN 1142 1143 abort_message='Nudging: error -> no PRES variable in file P.nc' 1143 1144 CALL abort_gcm(modname,abort_message,1) … … 1150 1151 if (guide_u) then 1151 1152 rcode = nf90_open('u.nc', nf90_nowrite, ncidu) 1152 IF (rcode.NE.NF _NOERR) THEN1153 IF (rcode.NE.NF90_NOERR) THEN 1153 1154 abort_message='Nudging: error -> no file u.nc' 1154 1155 CALL abort_gcm(modname,abort_message,1) 1155 1156 ENDIF 1156 1157 rcode = nf90_inq_varid(ncidu, 'UWND', varidu) 1157 IF (rcode.NE.NF _NOERR) THEN1158 IF (rcode.NE.NF90_NOERR) THEN 1158 1159 abort_message='Nudging: error -> no UWND variable in file u.nc' 1159 1160 CALL abort_gcm(modname,abort_message,1) … … 1181 1182 if (guide_v) then 1182 1183 rcode = nf90_open('v.nc', nf90_nowrite, ncidv) 1183 IF (rcode.NE.NF _NOERR) THEN1184 IF (rcode.NE.NF90_NOERR) THEN 1184 1185 abort_message='Nudging: error -> no file v.nc' 1185 1186 CALL abort_gcm(modname,abort_message,1) 1186 1187 ENDIF 1187 1188 rcode = nf90_inq_varid(ncidv, 'VWND', varidv) 1188 IF (rcode.NE.NF _NOERR) THEN1189 IF (rcode.NE.NF90_NOERR) THEN 1189 1190 abort_message='Nudging: error -> no VWND variable in file v.nc' 1190 1191 CALL abort_gcm(modname,abort_message,1) … … 1214 1215 if (guide_T) then 1215 1216 rcode = nf90_open('T.nc', nf90_nowrite, ncidt) 1216 IF (rcode.NE.NF _NOERR) THEN1217 IF (rcode.NE.NF90_NOERR) THEN 1217 1218 abort_message='Nudging: error -> no file T.nc' 1218 1219 CALL abort_gcm(modname,abort_message,1) 1219 1220 ENDIF 1220 1221 rcode = nf90_inq_varid(ncidt, 'AIR', varidt) 1221 IF (rcode.NE.NF _NOERR) THEN1222 IF (rcode.NE.NF90_NOERR) THEN 1222 1223 abort_message='Nudging: error -> no AIR variable in file T.nc' 1223 1224 CALL abort_gcm(modname,abort_message,1) … … 1245 1246 if (guide_Q) then 1246 1247 rcode = nf90_open('hur.nc', nf90_nowrite, ncidQ) 1247 IF (rcode.NE.NF _NOERR) THEN1248 IF (rcode.NE.NF90_NOERR) THEN 1248 1249 abort_message='Nudging: error -> no file hur.nc' 1249 1250 CALL abort_gcm(modname,abort_message,1) 1250 1251 ENDIF 1251 1252 rcode = nf90_inq_varid(ncidQ, 'RH', varidQ) 1252 IF (rcode.NE.NF _NOERR) THEN1253 IF (rcode.NE.NF90_NOERR) THEN 1253 1254 abort_message='Nudging: error -> no RH variable in file hur.nc' 1254 1255 CALL abort_gcm(modname,abort_message,1) … … 1276 1277 if ((guide_P).OR.(guide_modele)) then 1277 1278 rcode = nf90_open('ps.nc', nf90_nowrite, ncidps) 1278 IF (rcode.NE.NF _NOERR) THEN1279 IF (rcode.NE.NF90_NOERR) THEN 1279 1280 abort_message='Nudging: error -> no file ps.nc' 1280 1281 CALL abort_gcm(modname,abort_message,1) 1281 1282 ENDIF 1282 1283 rcode = nf90_inq_varid(ncidps, 'SP', varidps) 1283 IF (rcode.NE.NF _NOERR) THEN1284 IF (rcode.NE.NF90_NOERR) THEN 1284 1285 abort_message='Nudging: error -> no SP variable in file ps.nc' 1285 1286 CALL abort_gcm(modname,abort_message,1) … … 1383 1384 SUBROUTINE guide_read2D(timestep) 1384 1385 1385 use netcdf, only: nf90_get_var 1386 use netcdf, only: nf90_get_var, nf90_noerr 1386 1387 1387 1388 IMPLICIT NONE … … 1418 1419 write(*,*)trim(modname)//' Reading nudging on model levels' 1419 1420 rcode = nf90_open('apbp.nc', nf90_nowrite, ncidpl) 1420 IF (rcode.NE.NF _NOERR) THEN1421 IF (rcode.NE.NF90_NOERR) THEN 1421 1422 abort_message='Nudging: error -> no file apbp.nc' 1422 1423 CALL abort_gcm(modname,abort_message,1) 1423 1424 ENDIF 1424 1425 rcode = nf90_inq_varid(ncidpl, 'AP', varidap) 1425 IF (rcode.NE.NF _NOERR) THEN1426 IF (rcode.NE.NF90_NOERR) THEN 1426 1427 abort_message='Nudging: error -> no AP variable in file apbp.nc' 1427 1428 CALL abort_gcm(modname,abort_message,1) 1428 1429 ENDIF 1429 1430 rcode = nf90_inq_varid(ncidpl, 'BP', varidbp) 1430 IF (rcode.NE.NF _NOERR) THEN1431 IF (rcode.NE.NF90_NOERR) THEN 1431 1432 abort_message='Nudging: error -> no BP variable in file apbp.nc' 1432 1433 CALL abort_gcm(modname,abort_message,1) … … 1437 1438 if (guide_plevs.EQ.2) then 1438 1439 rcode = nf90_open('P.nc', nf90_nowrite, ncidp) 1439 IF (rcode.NE.NF _NOERR) THEN1440 IF (rcode.NE.NF90_NOERR) THEN 1440 1441 abort_message='Nudging: error -> no file P.nc' 1441 1442 CALL abort_gcm(modname,abort_message,1) 1442 1443 ENDIF 1443 1444 rcode = nf90_inq_varid(ncidp, 'PRES', varidp) 1444 IF (rcode.NE.NF _NOERR) THEN1445 IF (rcode.NE.NF90_NOERR) THEN 1445 1446 abort_message='Nudging: error -> no PRES variable in file P.nc' 1446 1447 CALL abort_gcm(modname,abort_message,1) … … 1452 1453 if (guide_u) then 1453 1454 rcode = nf90_open('u.nc', nf90_nowrite, ncidu) 1454 IF (rcode.NE.NF _NOERR) THEN1455 IF (rcode.NE.NF90_NOERR) THEN 1455 1456 abort_message='Nudging: error -> no file u.nc' 1456 1457 CALL abort_gcm(modname,abort_message,1) 1457 1458 ENDIF 1458 1459 rcode = nf90_inq_varid(ncidu, 'UWND', varidu) 1459 IF (rcode.NE.NF _NOERR) THEN1460 IF (rcode.NE.NF90_NOERR) THEN 1460 1461 abort_message='Nudging: error -> no UWND variable in file u.nc' 1461 1462 CALL abort_gcm(modname,abort_message,1) … … 1467 1468 if (guide_v) then 1468 1469 rcode = nf90_open('v.nc', nf90_nowrite, ncidv) 1469 IF (rcode.NE.NF _NOERR) THEN1470 IF (rcode.NE.NF90_NOERR) THEN 1470 1471 abort_message='Nudging: error -> no file v.nc' 1471 1472 CALL abort_gcm(modname,abort_message,1) 1472 1473 ENDIF 1473 1474 rcode = nf90_inq_varid(ncidv, 'VWND', varidv) 1474 IF (rcode.NE.NF _NOERR) THEN1475 IF (rcode.NE.NF90_NOERR) THEN 1475 1476 abort_message='Nudging: error -> no VWND variable in file v.nc' 1476 1477 CALL abort_gcm(modname,abort_message,1) … … 1482 1483 if (guide_T) then 1483 1484 rcode = nf90_open('T.nc', nf90_nowrite, ncidt) 1484 IF (rcode.NE.NF _NOERR) THEN1485 IF (rcode.NE.NF90_NOERR) THEN 1485 1486 abort_message='Nudging: error -> no file T.nc' 1486 1487 CALL abort_gcm(modname,abort_message,1) 1487 1488 ENDIF 1488 1489 rcode = nf90_inq_varid(ncidt, 'AIR', varidt) 1489 IF (rcode.NE.NF _NOERR) THEN1490 IF (rcode.NE.NF90_NOERR) THEN 1490 1491 abort_message='Nudging: error -> no AIR variable in file T.nc' 1491 1492 CALL abort_gcm(modname,abort_message,1) … … 1497 1498 if (guide_Q) then 1498 1499 rcode = nf90_open('hur.nc', nf90_nowrite, ncidQ) 1499 IF (rcode.NE.NF _NOERR) THEN1500 IF (rcode.NE.NF90_NOERR) THEN 1500 1501 abort_message='Nudging: error -> no file hur.nc' 1501 1502 CALL abort_gcm(modname,abort_message,1) 1502 1503 ENDIF 1503 1504 rcode = nf90_inq_varid(ncidQ, 'RH', varidQ) 1504 IF (rcode.NE.NF _NOERR) THEN1505 IF (rcode.NE.NF90_NOERR) THEN 1505 1506 abort_message='Nudging: error -> no RH,variable in file hur.nc' 1506 1507 CALL abort_gcm(modname,abort_message,1) … … 1512 1513 if ((guide_P).OR.(guide_modele)) then 1513 1514 rcode = nf90_open('ps.nc', nf90_nowrite, ncidps) 1514 IF (rcode.NE.NF _NOERR) THEN1515 IF (rcode.NE.NF90_NOERR) THEN 1515 1516 abort_message='Nudging: error -> no file ps.nc' 1516 1517 CALL abort_gcm(modname,abort_message,1) 1517 1518 ENDIF 1518 1519 rcode = nf90_inq_varid(ncidps, 'SP', varidps) 1519 IF (rcode.NE.NF _NOERR) THEN1520 IF (rcode.NE.NF90_NOERR) THEN 1520 1521 abort_message='Nudging: error -> no SP variable in file ps.nc' 1521 1522 CALL abort_gcm(modname,abort_message,1)
Note: See TracChangeset
for help on using the changeset viewer.