Changeset 2567 for trunk/LMDZ.MARS/util/aeroptical.F90
- Timestamp:
- Oct 5, 2021, 8:34:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/util/aeroptical.F90
r2443 r2567 1304 1304 hybrid=.true. 1305 1305 if (ierr.ne.nf90_noerr) then 1306 stop "init2 Error: Failed reading aps" 1306 write(*,*) "init2 Error: Failed reading aps" 1307 stop 1307 1308 endif 1308 1309 … … 1316 1317 ierr=nf90_inq_varid(gcmfid,"bps",tmpvarid) 1317 1318 if (ierr.ne.nf90_noerr) then 1318 stop "init2 Error: Failed to get bps ID." 1319 write(*,*) "init2 Error: Failed to get bps ID." 1320 stop 1319 1321 endif 1320 1322 ierr=NF90_GET_VAR(gcmfid,tmpvarid,bps) 1321 1323 if (ierr.ne.nf90_noerr) then 1322 stop "init2 Error: Failed reading bps" 1324 write(*,*) "init2 Error: Failed reading bps" 1325 stop 1323 1326 endif 1324 1327 endif … … 1338 1341 apbp=.true. 1339 1342 if (ierr.ne.nf90_noerr) then 1340 stop "Error: Failed reading ap" 1343 write(*,*) "Error: Failed reading ap" 1344 stop 1341 1345 endif 1342 1346 endif … … 1357 1361 apbp=.true. 1358 1362 if (ierr.ne.nf90_noerr) then 1359 stop "Error: Failed reading bp" 1363 write(*,*) "Error: Failed reading bp" 1364 stop 1360 1365 endif 1361 1366 endif … … 1372 1377 ierr=NF90_GET_VAR(gcmfid,tmpvarid,sigma) 1373 1378 if (ierr.ne.nf90_noerr) then 1374 stop "init2 Error: Failed reading sigma" 1379 write(*,*) "init2 Error: Failed reading sigma" 1380 stop 1375 1381 endif 1376 1382 endif ! of if (.not.hybrid) … … 1389 1395 ierr=NF90_GET_VAR(gcmfid,tmpvarid,aire) 1390 1396 if (ierr.ne.nf90_noerr) then 1391 stop "init2 Error: Failed reading aire" 1397 write(*,*) "init2 Error: Failed reading aire" 1398 stop 1392 1399 endif 1393 1400 area = .true. … … 1407 1414 ierr=NF90_GET_VAR(gcmfid,tmpvarid,phisinit) 1408 1415 if (ierr.ne.nf90_noerr) then 1409 stop "init2 Error: Failed reading phisinit" 1416 write(*,*) "init2 Error: Failed reading phisinit" 1417 stop 1410 1418 endif 1411 1419 phis = .true. … … 1426 1434 ierr=NF90_DEF_VAR(outfid,"aps",nf90_float,(/layerdimout/),tmpvarid) 1427 1435 if (ierr.ne.nf90_noerr) then 1428 stop "init2 Error: Failed to define the variable aps" 1436 write(*,*) "init2 Error: Failed to define the variable aps" 1437 stop 1429 1438 endif 1430 1439 ! Write the attributes … … 1437 1446 ierr=NF90_PUT_VAR(outfid,tmpvarid,aps) 1438 1447 if (ierr.ne.nf90_noerr) then 1439 stop "init2 Error: Failed to write aps" 1448 write(*,*) "init2 Error: Failed to write aps" 1449 stop 1440 1450 endif 1441 1451 … … 1446 1456 ierr=NF90_DEF_VAR(outfid,"bps",nf90_float,(/layerdimout/),tmpvarid) 1447 1457 if (ierr.ne.nf90_noerr) then 1448 stop "init2 Error: Failed to define the variable bps" 1458 write(*,*) "init2 Error: Failed to define the variable bps" 1459 stop 1449 1460 endif 1450 1461 ! Write the attributes … … 1457 1468 ierr=NF90_PUT_VAR(outfid,tmpvarid,bps) 1458 1469 if (ierr.ne.nf90_noerr) then 1459 stop "init2 Error: Failed to write bps" 1470 write(*,*) "init2 Error: Failed to write bps" 1471 stop 1460 1472 endif 1461 1473 … … 1468 1480 ierr=NF90_DEF_VAR(outfid,"ap",nf90_float,(/interlayerdimout/),tmpvarid) 1469 1481 if (ierr.ne.nf90_noerr) then 1470 stop "init2 Error: Failed to define the variable ap" 1482 write(*,*) "init2 Error: Failed to define the variable ap" 1483 stop 1471 1484 endif 1472 1485 ! Write the attributes … … 1479 1492 ierr=NF90_PUT_VAR(outfid,tmpvarid,ap) 1480 1493 if (ierr.ne.nf90_noerr) then 1481 stop "Error: Failed to write ap" 1494 write(*,*) "Error: Failed to write ap" 1495 stop 1482 1496 endif 1483 1497 … … 1489 1503 ierr=NF90_DEF_VAR(outfid,"bp",nf90_float,(/interlayerdimout/),tmpvarid) 1490 1504 if (ierr.ne.nf90_noerr) then 1491 stop "init2 Error: Failed to define the variable bp" 1505 write(*,*) "init2 Error: Failed to define the variable bp" 1506 stop 1492 1507 endif 1493 1508 ! Write the attributes … … 1500 1515 ierr=NF90_PUT_VAR(outfid,tmpvarid,bp) 1501 1516 if (ierr.ne.nf90_noerr) then 1502 stop "Error: Failed to write bp" 1517 write(*,*) "Error: Failed to write bp" 1518 stop 1503 1519 endif 1504 1520 endif ! of if (apbp) … … 1511 1527 ierr=NF90_DEF_VAR(outfid,"sigma",nf90_float,(/layerdimout/),tmpvarid) 1512 1528 if (ierr.ne.nf90_noerr) then 1513 stop "init2 Error: Failed to define the variable sigma" 1529 write(*,*) "init2 Error: Failed to define the variable sigma" 1530 stop 1514 1531 endif 1515 1532 ! Write the attributes … … 1522 1539 ierr=NF90_PUT_VAR(outfid,tmpvarid,sigma) 1523 1540 if (ierr.ne.nf90_noerr) then 1524 stop "init2 Error: Failed to write sigma" 1541 write(*,*) "init2 Error: Failed to write sigma" 1542 stop 1525 1543 endif 1526 1544 endif ! of if (hybrid) … … 1537 1555 ierr=NF90_DEF_VAR(outfid,"aire",nf90_float,(/londimout,latdimout/),tmpvarid) 1538 1556 if (ierr.ne.nf90_noerr) then 1539 stop "init2 Error: Failed to define the variable aire" 1557 write(*,*) "init2 Error: Failed to define the variable aire" 1558 stop 1540 1559 endif 1541 1560 ! Write the attributes … … 1548 1567 ierr=NF90_PUT_VAR(outfid,tmpvarid,aire) 1549 1568 if (ierr.ne.nf90_noerr) then 1550 stop "init2 Error: Failed to write aire" 1569 write(*,*) "init2 Error: Failed to write aire" 1570 stop 1551 1571 endif 1552 1572 endif ! of if (area) … … 1559 1579 ierr=NF90_DEF_VAR(outfid,"phisinit",nf90_float,(/londimout,latdimout/),tmpvarid) 1560 1580 if (ierr.ne.nf90_noerr) then 1561 stop "init2 Error: Failed to define the variable phisinit" 1581 write(*,*) "init2 Error: Failed to define the variable phisinit" 1582 stop 1562 1583 endif 1563 1584 ! Write the attributes … … 1570 1591 ierr=NF90_PUT_VAR(outfid,tmpvarid,phisinit) 1571 1592 if (ierr.ne.nf90_noerr) then 1572 stop "init2 Error: Failed to write phisinit" 1593 write(*,*) "init2 Error: Failed to write phisinit" 1594 stop 1573 1595 endif 1574 1596
Note: See TracChangeset
for help on using the changeset viewer.