Changeset 4274 for LMDZ6/trunk
- Timestamp:
- Sep 21, 2022, 3:12:15 PM (2 years ago)
- Location:
- LMDZ6/trunk/libf/phylmd/dyn1d
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/dyn1d/mod_1D_cases_read2.F90
r4273 r4274 317 317 !********************************************************************************************** 318 318 SUBROUTINE old_read_SCM_cas 319 use netcdf, only: nf90_get_var 319 320 implicit none 320 321 … … 376 377 else 377 378 allocate(time_val(nt_cas)) 378 #ifdef NC_DOUBLE 379 ierr = NF_GET_VAR_DOUBLE(nid,timeid,time_val) 380 #else 381 ierr = NF_GET_VAR_REAL(nid,timeid,time_val) 382 #endif 379 ierr = NF90_GET_VAR(nid,timeid,time_val) 383 380 if(ierr/=NF_NOERR) then 384 381 print *,'Pb a la lecture de time cas.nc: ' … … 544 541 545 542 !program reading forcing of the case study 543 use netcdf, only: nf90_get_var 546 544 implicit none 547 545 #include "netcdf.inc" … … 591 589 print *,'Dans read_cas2, on va lire ',var3didin(i),name_var(i) 592 590 if(i.LE.35) then 593 #ifdef NC_DOUBLE 594 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul) 595 #else 596 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul) 597 #endif 591 ierr = NF90_GET_VAR(nid,var3didin(i),resul) 598 592 print *,'Dans read_cas2, on a lu ',ierr,var3didin(i),name_var(i) 599 593 if(ierr/=NF_NOERR) then … … 602 596 endif 603 597 else 604 #ifdef NC_DOUBLE 605 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul1) 606 #else 607 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul1) 608 #endif 598 ierr = NF90_GET_VAR(nid,var3didin(i),resul1) 609 599 print *,'Dans read_cas2, on a lu ',ierr,var3didin(i),name_var(i) 610 600 if(ierr/=NF_NOERR) then … … 667 657 668 658 !program reading forcing of the case study 659 use netcdf, only: nf90_get_var 669 660 implicit none 670 661 #include "netcdf.inc" … … 720 711 !----------------------------------------------------------------------- 721 712 if(i.LE.4) then ! Lecture des coord pression en (nlevelp1,lat,lon) 722 #ifdef NC_DOUBLE 723 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),apbp) 724 #else 725 ierr = NF_GET_VAR_REAL(nid,var3didin(i),apbp) 726 #endif 713 ierr = NF90_GET_VAR(nid,var3didin(i),apbp) 727 714 print *,'read2_cas(apbp), on a lu ',i,name_var(i) 728 715 if(ierr/=NF_NOERR) then … … 732 719 !----------------------------------------------------------------------- 733 720 else if(i.gt.4.and.i.LE.45) then ! Lecture des variables en (time,nlevel,lat,lon) 734 #ifdef NC_DOUBLE 735 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul) 736 #else 737 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul) 738 #endif 721 ierr = NF90_GET_VAR(nid,var3didin(i),resul) 739 722 print *,'read2_cas(resul), on a lu ',i,name_var(i) 740 723 if(ierr/=NF_NOERR) then … … 744 727 !----------------------------------------------------------------------- 745 728 else if (i.gt.45.and.i.LE.51) then ! Lecture des variables en (time,lat,lon) 746 #ifdef NC_DOUBLE 747 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul2) 748 #else 749 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul2) 750 #endif 729 ierr = NF90_GET_VAR(nid,var3didin(i),resul2) 751 730 print *,'read2_cas(resul2), on a lu ',i,name_var(i) 752 731 if(ierr/=NF_NOERR) then … … 756 735 !----------------------------------------------------------------------- 757 736 else ! Lecture des constantes (lat,lon) 758 #ifdef NC_DOUBLE 759 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul3) 760 #else 761 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul3) 762 #endif 737 ierr = NF90_GET_VAR(nid,var3didin(i),resul3) 763 738 print *,'read2_cas(resul3), on a lu ',i,name_var(i) 764 739 if(ierr/=NF_NOERR) then … … 853 828 854 829 !program reading forcing of the case study 830 use netcdf, only: nf90_get_var 855 831 implicit none 856 832 #include "netcdf.inc" … … 912 888 !----------------------------------------------------------------------- 913 889 if(i.LE.4) then ! Lecture des coord pression en (nlevelp1,lat,lon) 914 #ifdef NC_DOUBLE 915 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),apbp) 916 #else 917 ierr = NF_GET_VAR_REAL(nid,var3didin(i),apbp) 918 #endif 890 ierr = NF90_GET_VAR(nid,var3didin(i),apbp) 919 891 print *,'read2_cas(apbp), on a lu ',i,name_var(i) 920 892 if(ierr/=NF_NOERR) then … … 924 896 !----------------------------------------------------------------------- 925 897 else if(i.gt.4.and.i.LE.12) then ! Lecture des variables en (time,nlevel,lat,lon) 926 #ifdef NC_DOUBLE 927 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul1) 928 #else 929 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul1) 930 #endif 898 ierr = NF90_GET_VAR(nid,var3didin(i),resul1) 931 899 print *,'read2_cas(resul1), on a lu ',i,name_var(i) 932 900 if(ierr/=NF_NOERR) then … … 937 905 !----------------------------------------------------------------------- 938 906 else if(i.gt.12.and.i.LE.54) then ! Lecture des variables en (time,nlevel,lat,lon) 939 #ifdef NC_DOUBLE 940 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul) 941 #else 942 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul) 943 #endif 907 ierr = NF90_GET_VAR(nid,var3didin(i),resul) 944 908 print *,'read2_cas(resul), on a lu ',i,name_var(i) 945 909 if(ierr/=NF_NOERR) then … … 950 914 !----------------------------------------------------------------------- 951 915 else if (i.gt.54.and.i.LE.65) then ! Lecture des variables en (time,lat,lon) 952 #ifdef NC_DOUBLE 953 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul2) 954 #else 955 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul2) 956 #endif 916 ierr = NF90_GET_VAR(nid,var3didin(i),resul2) 957 917 print *,'read2_cas(resul2), on a lu ',i,name_var(i) 958 918 if(ierr/=NF_NOERR) then … … 963 923 !----------------------------------------------------------------------- 964 924 else ! Lecture des constantes (lat,lon) 965 #ifdef NC_DOUBLE 966 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul3) 967 #else 968 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul3) 969 #endif 925 ierr = NF90_GET_VAR(nid,var3didin(i),resul3) 970 926 print *,'read2_cas(resul3), on a lu ',i,name_var(i) 971 927 if(ierr/=NF_NOERR) then -
LMDZ6/trunk/libf/phylmd/dyn1d/mod_1D_cases_read_std.F90
r4273 r4274 87 87 !********************************************************************************************** 88 88 SUBROUTINE read_SCM_cas 89 use netcdf, only: nf90_get_var 89 90 implicit none 90 91 … … 146 147 else 147 148 allocate(time_val(nt_cas)) 148 #ifdef NC_DOUBLE 149 ierr = NF_GET_VAR_DOUBLE(nid,timeid,time_val) 150 #else 151 ierr = NF_GET_VAR_REAL(nid,timeid,time_val) 152 #endif 149 ierr = NF90_GET_VAR(nid,timeid,time_val) 153 150 if(ierr/=NF_NOERR) then 154 151 print *,'Pb a la lecture de time cas.nc: ' … … 332 329 333 330 !program reading forcing of the case study 331 use netcdf, only: nf90_get_var 334 332 implicit none 335 333 #include "netcdf.inc" … … 458 456 !----------------------------------------------------------------------- 459 457 if(i.LE.4) then 460 #ifdef NC_DOUBLE 461 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),apbp) 462 #else 463 ierr = NF_GET_VAR_REAL(nid,var3didin(i),apbp) 464 #endif 458 ierr = NF90_GET_VAR(nid,var3didin(i),apbp) 465 459 print *,'read2_cas(apbp), on a lu ',i,name_var(i) 466 460 if(ierr/=NF_NOERR) then … … 473 467 !----------------------------------------------------------------------- 474 468 else if(i.gt.4.and.i.LE.12) then 475 #ifdef NC_DOUBLE 476 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul1) 477 #else 478 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul1) 479 #endif 469 ierr = NF90_GET_VAR(nid,var3didin(i),resul1) 480 470 print *,'read2_cas(resul1), on a lu ',i,name_var(i) 481 471 if(ierr/=NF_NOERR) then … … 490 480 !----------------------------------------------------------------------- 491 481 else if(i.gt.12.and.i.LE.61) then 492 #ifdef NC_DOUBLE 493 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul) 494 #else 495 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul) 496 #endif 482 ierr = NF90_GET_VAR(nid,var3didin(i),resul) 497 483 print *,'read2_cas(resul), on a lu ',i,name_var(i) 498 484 if(ierr/=NF_NOERR) then … … 506 492 !----------------------------------------------------------------------- 507 493 else if (i.gt.62.and.i.LE.75) then 508 #ifdef NC_DOUBLE 509 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul2) 510 #else 511 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul2) 512 #endif 494 ierr = NF90_GET_VAR(nid,var3didin(i),resul2) 513 495 print *,'read2_cas(resul2), on a lu ',i,name_var(i) 514 496 if(ierr/=NF_NOERR) then … … 522 504 !----------------------------------------------------------------------- 523 505 else 524 #ifdef NC_DOUBLE 525 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(i),resul3) 526 #else 527 ierr = NF_GET_VAR_REAL(nid,var3didin(i),resul3) 528 #endif 506 ierr = NF90_GET_VAR(nid,var3didin(i),resul3) 529 507 print *,'read2_cas(resul3), on a lu ',i,name_var(i) 530 508 if(ierr/=NF_NOERR) then -
LMDZ6/trunk/libf/phylmd/dyn1d/old_1DUTILS_read_interp.h
r3541 r4274 146 146 !program reading forcings of the TWP-ICE experiment 147 147 148 ! use netcdf 148 use netcdf, only: nf90_get_var 149 149 150 150 implicit none … … 314 314 enddo 315 315 316 #ifdef NC_DOUBLE 317 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(1),lat) 318 #else 319 ierr = NF_GET_VAR_REAL(nid,var3didin(1),lat) 320 #endif 316 ierr = NF90_GET_VAR(nid,var3didin(1),lat) 321 317 if(ierr/=NF_NOERR) then 322 318 write(*,*) NF_STRERROR(ierr) … … 325 321 ! write(*,*)'lecture lat ok',lat 326 322 327 #ifdef NC_DOUBLE 328 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(2),lon) 329 #else 330 ierr = NF_GET_VAR_REAL(nid,var3didin(2),lon) 331 #endif 323 ierr = NF90_GET_VAR(nid,var3didin(2),lon) 332 324 if(ierr/=NF_NOERR) then 333 325 write(*,*) NF_STRERROR(ierr) … … 336 328 ! write(*,*)'lecture lon ok',lon 337 329 338 #ifdef NC_DOUBLE 339 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(3),alt) 340 #else 341 ierr = NF_GET_VAR_REAL(nid,var3didin(3),alt) 342 #endif 330 ierr = NF90_GET_VAR(nid,var3didin(3),alt) 343 331 if(ierr/=NF_NOERR) then 344 332 write(*,*) NF_STRERROR(ierr) … … 347 335 ! write(*,*)'lecture alt ok',alt 348 336 349 #ifdef NC_DOUBLE 350 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(4),phis) 351 #else 352 ierr = NF_GET_VAR_REAL(nid,var3didin(4),phis) 353 #endif 337 ierr = NF90_GET_VAR(nid,var3didin(4),phis) 354 338 if(ierr/=NF_NOERR) then 355 339 write(*,*) NF_STRERROR(ierr) … … 358 342 ! write(*,*)'lecture phis ok',phis 359 343 360 #ifdef NC_DOUBLE 361 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(5),T) 362 #else 363 ierr = NF_GET_VAR_REAL(nid,var3didin(5),T) 364 #endif 344 ierr = NF90_GET_VAR(nid,var3didin(5),T) 365 345 if(ierr/=NF_NOERR) then 366 346 write(*,*) NF_STRERROR(ierr) … … 369 349 ! write(*,*)'lecture T ok' 370 350 371 #ifdef NC_DOUBLE 372 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(6),q) 373 #else 374 ierr = NF_GET_VAR_REAL(nid,var3didin(6),q) 375 #endif 351 ierr = NF90_GET_VAR(nid,var3didin(6),q) 376 352 if(ierr/=NF_NOERR) then 377 353 write(*,*) NF_STRERROR(ierr) … … 385 361 enddo 386 362 enddo 387 #ifdef NC_DOUBLE 388 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(7),u) 389 #else 390 ierr = NF_GET_VAR_REAL(nid,var3didin(7),u) 391 #endif 363 ierr = NF90_GET_VAR(nid,var3didin(7),u) 392 364 if(ierr/=NF_NOERR) then 393 365 write(*,*) NF_STRERROR(ierr) … … 396 368 ! write(*,*)'lecture u ok' 397 369 398 #ifdef NC_DOUBLE 399 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(8),v) 400 #else 401 ierr = NF_GET_VAR_REAL(nid,var3didin(8),v) 402 #endif 370 ierr = NF90_GET_VAR(nid,var3didin(8),v) 403 371 if(ierr/=NF_NOERR) then 404 372 write(*,*) NF_STRERROR(ierr) … … 407 375 ! write(*,*)'lecture v ok' 408 376 409 #ifdef NC_DOUBLE 410 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(9),omega) 411 #else 412 ierr = NF_GET_VAR_REAL(nid,var3didin(9),omega) 413 #endif 377 ierr = NF90_GET_VAR(nid,var3didin(9),omega) 414 378 if(ierr/=NF_NOERR) then 415 379 write(*,*) NF_STRERROR(ierr) … … 424 388 enddo 425 389 426 #ifdef NC_DOUBLE 427 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(10),div) 428 #else 429 ierr = NF_GET_VAR_REAL(nid,var3didin(10),div) 430 #endif 390 ierr = NF90_GET_VAR(nid,var3didin(10),div) 431 391 if(ierr/=NF_NOERR) then 432 392 write(*,*) NF_STRERROR(ierr) … … 435 395 ! write(*,*)'lecture div ok' 436 396 437 #ifdef NC_DOUBLE 438 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(11),T_adv_h) 439 #else 440 ierr = NF_GET_VAR_REAL(nid,var3didin(11),T_adv_h) 441 #endif 397 ierr = NF90_GET_VAR(nid,var3didin(11),T_adv_h) 442 398 if(ierr/=NF_NOERR) then 443 399 write(*,*) NF_STRERROR(ierr) … … 453 409 454 410 455 #ifdef NC_DOUBLE 456 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(12),T_adv_v) 457 #else 458 ierr = NF_GET_VAR_REAL(nid,var3didin(12),T_adv_v) 459 #endif 411 ierr = NF90_GET_VAR(nid,var3didin(12),T_adv_v) 460 412 if(ierr/=NF_NOERR) then 461 413 write(*,*) NF_STRERROR(ierr) … … 470 422 enddo 471 423 472 #ifdef NC_DOUBLE 473 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(13),q_adv_h) 474 #else 475 ierr = NF_GET_VAR_REAL(nid,var3didin(13),q_adv_h) 476 #endif 424 ierr = NF90_GET_VAR(nid,var3didin(13),q_adv_h) 477 425 if(ierr/=NF_NOERR) then 478 426 write(*,*) NF_STRERROR(ierr) … … 488 436 489 437 490 #ifdef NC_DOUBLE 491 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(14),q_adv_v) 492 #else 493 ierr = NF_GET_VAR_REAL(nid,var3didin(14),q_adv_v) 494 #endif 438 ierr = NF90_GET_VAR(nid,var3didin(14),q_adv_v) 495 439 if(ierr/=NF_NOERR) then 496 440 write(*,*) NF_STRERROR(ierr) … … 506 450 507 451 508 #ifdef NC_DOUBLE 509 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(15),s) 510 #else 511 ierr = NF_GET_VAR_REAL(nid,var3didin(15),s) 512 #endif 513 if(ierr/=NF_NOERR) then 514 write(*,*) NF_STRERROR(ierr) 515 stop "getvarup" 516 endif 517 518 #ifdef NC_DOUBLE 519 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(16),s_adv_h) 520 #else 521 ierr = NF_GET_VAR_REAL(nid,var3didin(16),s_adv_h) 522 #endif 523 if(ierr/=NF_NOERR) then 524 write(*,*) NF_STRERROR(ierr) 525 stop "getvarup" 526 endif 527 528 #ifdef NC_DOUBLE 529 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(17),s_adv_v) 530 #else 531 ierr = NF_GET_VAR_REAL(nid,var3didin(17),s_adv_v) 532 #endif 533 if(ierr/=NF_NOERR) then 534 write(*,*) NF_STRERROR(ierr) 535 stop "getvarup" 536 endif 537 538 #ifdef NC_DOUBLE 539 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(18),p_srf_aver) 540 #else 541 ierr = NF_GET_VAR_REAL(nid,var3didin(18),p_srf_aver) 542 #endif 543 if(ierr/=NF_NOERR) then 544 write(*,*) NF_STRERROR(ierr) 545 stop "getvarup" 546 endif 547 548 #ifdef NC_DOUBLE 549 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(19),p_srf_center) 550 #else 551 ierr = NF_GET_VAR_REAL(nid,var3didin(19),p_srf_center) 552 #endif 553 if(ierr/=NF_NOERR) then 554 write(*,*) NF_STRERROR(ierr) 555 stop "getvarup" 556 endif 557 558 #ifdef NC_DOUBLE 559 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(20),T_srf) 560 #else 561 ierr = NF_GET_VAR_REAL(nid,var3didin(20),T_srf) 562 #endif 452 ierr = NF90_GET_VAR(nid,var3didin(15),s) 453 if(ierr/=NF_NOERR) then 454 write(*,*) NF_STRERROR(ierr) 455 stop "getvarup" 456 endif 457 458 ierr = NF90_GET_VAR(nid,var3didin(16),s_adv_h) 459 if(ierr/=NF_NOERR) then 460 write(*,*) NF_STRERROR(ierr) 461 stop "getvarup" 462 endif 463 464 ierr = NF90_GET_VAR(nid,var3didin(17),s_adv_v) 465 if(ierr/=NF_NOERR) then 466 write(*,*) NF_STRERROR(ierr) 467 stop "getvarup" 468 endif 469 470 ierr = NF90_GET_VAR(nid,var3didin(18),p_srf_aver) 471 if(ierr/=NF_NOERR) then 472 write(*,*) NF_STRERROR(ierr) 473 stop "getvarup" 474 endif 475 476 ierr = NF90_GET_VAR(nid,var3didin(19),p_srf_center) 477 if(ierr/=NF_NOERR) then 478 write(*,*) NF_STRERROR(ierr) 479 stop "getvarup" 480 endif 481 482 ierr = NF90_GET_VAR(nid,var3didin(20),T_srf) 563 483 if(ierr/=NF_NOERR) then 564 484 write(*,*) NF_STRERROR(ierr) … … 572 492 subroutine catchaxis(nid,ttm,llm,time,lev,ierr) 573 493 574 ! use netcdf 494 use netcdf, only: nf90_get_var 575 495 576 496 implicit none … … 610 530 endif 611 531 612 !#ifdef NC_DOUBLE 613 ierr = NF_GET_VAR_DOUBLE(nid,timevar,time) 614 ierr = NF_GET_VAR_DOUBLE(nid,levvar,lev) 615 !#else 616 ! ierr = NF_GET_VAR_REAL(nid,timevar,time) 617 ! ierr = NF_GET_VAR_REAL(nid,levvar,lev) 618 !#endif 532 ierr = NF90_GET_VAR(nid,timevar,time) 533 ierr = NF90_GET_VAR(nid,levvar,lev) 619 534 620 535 return … … 2255 2170 2256 2171 2172 use netcdf, only: nf90_get_var 2257 2173 implicit none 2258 2174 … … 2364 2280 ! call catchaxis(nid,ntime,nlevel,time,z,ierr) 2365 2281 2366 #ifdef NC_DOUBLE 2367 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(1),zz) 2368 #else 2369 ierr = NF_GET_VAR_REAL(nid,var3didin(1),zz) 2370 #endif 2282 ierr = NF90_GET_VAR(nid,var3didin(1),zz) 2371 2283 if(ierr/=NF_NOERR) then 2372 2284 write(*,*) NF_STRERROR(ierr) … … 2375 2287 ! write(*,*)'lecture z ok',zz 2376 2288 2377 #ifdef NC_DOUBLE 2378 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(2),thl) 2379 #else 2380 ierr = NF_GET_VAR_REAL(nid,var3didin(2),thl) 2381 #endif 2289 ierr = NF90_GET_VAR(nid,var3didin(2),thl) 2382 2290 if(ierr/=NF_NOERR) then 2383 2291 write(*,*) NF_STRERROR(ierr) … … 2386 2294 ! write(*,*)'lecture thl ok',thl 2387 2295 2388 #ifdef NC_DOUBLE 2389 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(3),qt) 2390 #else 2391 ierr = NF_GET_VAR_REAL(nid,var3didin(3),qt) 2392 #endif 2296 ierr = NF90_GET_VAR(nid,var3didin(3),qt) 2393 2297 if(ierr/=NF_NOERR) then 2394 2298 write(*,*) NF_STRERROR(ierr) … … 2397 2301 ! write(*,*)'lecture qt ok',qt 2398 2302 2399 #ifdef NC_DOUBLE 2400 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(4),u) 2401 #else 2402 ierr = NF_GET_VAR_REAL(nid,var3didin(4),u) 2403 #endif 2303 ierr = NF90_GET_VAR(nid,var3didin(4),u) 2404 2304 if(ierr/=NF_NOERR) then 2405 2305 write(*,*) NF_STRERROR(ierr) … … 2408 2308 ! write(*,*)'lecture u ok',u 2409 2309 2410 #ifdef NC_DOUBLE 2411 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(5),v) 2412 #else 2413 ierr = NF_GET_VAR_REAL(nid,var3didin(5),v) 2414 #endif 2310 ierr = NF90_GET_VAR(nid,var3didin(5),v) 2415 2311 if(ierr/=NF_NOERR) then 2416 2312 write(*,*) NF_STRERROR(ierr) … … 2419 2315 ! write(*,*)'lecture v ok',v 2420 2316 2421 #ifdef NC_DOUBLE 2422 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(6),tke) 2423 #else 2424 ierr = NF_GET_VAR_REAL(nid,var3didin(6),tke) 2425 #endif 2317 ierr = NF90_GET_VAR(nid,var3didin(6),tke) 2426 2318 if(ierr/=NF_NOERR) then 2427 2319 write(*,*) NF_STRERROR(ierr) … … 2430 2322 ! write(*,*)'lecture tke ok',tke 2431 2323 2432 #ifdef NC_DOUBLE 2433 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(7),ug) 2434 #else 2435 ierr = NF_GET_VAR_REAL(nid,var3didin(7),ug) 2436 #endif 2324 ierr = NF90_GET_VAR(nid,var3didin(7),ug) 2437 2325 if(ierr/=NF_NOERR) then 2438 2326 write(*,*) NF_STRERROR(ierr) … … 2441 2329 ! write(*,*)'lecture ug ok',ug 2442 2330 2443 #ifdef NC_DOUBLE 2444 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(8),vg) 2445 #else 2446 ierr = NF_GET_VAR_REAL(nid,var3didin(8),vg) 2447 #endif 2331 ierr = NF90_GET_VAR(nid,var3didin(8),vg) 2448 2332 if(ierr/=NF_NOERR) then 2449 2333 write(*,*) NF_STRERROR(ierr) … … 2452 2336 ! write(*,*)'lecture vg ok',vg 2453 2337 2454 #ifdef NC_DOUBLE 2455 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(9),wls) 2456 #else 2457 ierr = NF_GET_VAR_REAL(nid,var3didin(9),wls) 2458 #endif 2338 ierr = NF90_GET_VAR(nid,var3didin(9),wls) 2459 2339 if(ierr/=NF_NOERR) then 2460 2340 write(*,*) NF_STRERROR(ierr) … … 2463 2343 ! write(*,*)'lecture wls ok',wls 2464 2344 2465 #ifdef NC_DOUBLE 2466 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(10),dqtdx) 2467 #else 2468 ierr = NF_GET_VAR_REAL(nid,var3didin(10),dqtdx) 2469 #endif 2345 ierr = NF90_GET_VAR(nid,var3didin(10),dqtdx) 2470 2346 if(ierr/=NF_NOERR) then 2471 2347 write(*,*) NF_STRERROR(ierr) … … 2474 2350 ! write(*,*)'lecture dqtdx ok',dqtdx 2475 2351 2476 #ifdef NC_DOUBLE 2477 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(11),dqtdy) 2478 #else 2479 ierr = NF_GET_VAR_REAL(nid,var3didin(11),dqtdy) 2480 #endif 2352 ierr = NF90_GET_VAR(nid,var3didin(11),dqtdy) 2481 2353 if(ierr/=NF_NOERR) then 2482 2354 write(*,*) NF_STRERROR(ierr) … … 2485 2357 ! write(*,*)'lecture dqtdy ok',dqtdy 2486 2358 2487 #ifdef NC_DOUBLE 2488 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(12),dqtdt) 2489 #else 2490 ierr = NF_GET_VAR_REAL(nid,var3didin(12),dqtdt) 2491 #endif 2359 ierr = NF90_GET_VAR(nid,var3didin(12),dqtdt) 2492 2360 if(ierr/=NF_NOERR) then 2493 2361 write(*,*) NF_STRERROR(ierr) … … 2496 2364 ! write(*,*)'lecture dqtdt ok',dqtdt 2497 2365 2498 #ifdef NC_DOUBLE 2499 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(13),thl_rad) 2500 #else 2501 ierr = NF_GET_VAR_REAL(nid,var3didin(13),thl_rad) 2502 #endif 2366 ierr = NF90_GET_VAR(nid,var3didin(13),thl_rad) 2503 2367 if(ierr/=NF_NOERR) then 2504 2368 write(*,*) NF_STRERROR(ierr) … … 2517 2381 !program reading initial profils and forcings of the Dice case study 2518 2382 2383 use netcdf, only: nf90_get_var 2519 2384 2520 2385 implicit none … … 2685 2550 ! call catchaxis(nid,ntime,nlevel,time,z,ierr) 2686 2551 2687 #ifdef NC_DOUBLE 2688 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(1),zz) 2689 #else 2690 ierr = NF_GET_VAR_REAL(nid,var3didin(1),zz) 2691 #endif 2552 ierr = NF90_GET_VAR(nid,var3didin(1),zz) 2692 2553 if(ierr/=NF_NOERR) then 2693 2554 write(*,*) NF_STRERROR(ierr) … … 2696 2557 ! write(*,*)'lecture zz ok',zz 2697 2558 2698 #ifdef NC_DOUBLE 2699 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(11),pres) 2700 #else 2701 ierr = NF_GET_VAR_REAL(nid,var3didin(11),pres) 2702 #endif 2559 ierr = NF90_GET_VAR(nid,var3didin(11),pres) 2703 2560 if(ierr/=NF_NOERR) then 2704 2561 write(*,*) NF_STRERROR(ierr) … … 2707 2564 ! write(*,*)'lecture pres ok',pres 2708 2565 2709 #ifdef NC_DOUBLE 2710 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(12),th) 2711 #else 2712 ierr = NF_GET_VAR_REAL(nid,var3didin(12),th) 2713 #endif 2566 ierr = NF90_GET_VAR(nid,var3didin(12),th) 2714 2567 if(ierr/=NF_NOERR) then 2715 2568 write(*,*) NF_STRERROR(ierr) … … 2721 2574 enddo 2722 2575 2723 #ifdef NC_DOUBLE 2724 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(13),qv) 2725 #else 2726 ierr = NF_GET_VAR_REAL(nid,var3didin(13),qv) 2727 #endif 2576 ierr = NF90_GET_VAR(nid,var3didin(13),qv) 2728 2577 if(ierr/=NF_NOERR) then 2729 2578 write(*,*) NF_STRERROR(ierr) … … 2732 2581 ! write(*,*)'lecture qv ok',qv 2733 2582 2734 #ifdef NC_DOUBLE 2735 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(14),u) 2736 #else 2737 ierr = NF_GET_VAR_REAL(nid,var3didin(14),u) 2738 #endif 2583 ierr = NF90_GET_VAR(nid,var3didin(14),u) 2739 2584 if(ierr/=NF_NOERR) then 2740 2585 write(*,*) NF_STRERROR(ierr) … … 2743 2588 ! write(*,*)'lecture u ok',u 2744 2589 2745 #ifdef NC_DOUBLE 2746 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(15),v) 2747 #else 2748 ierr = NF_GET_VAR_REAL(nid,var3didin(15),v) 2749 #endif 2590 ierr = NF90_GET_VAR(nid,var3didin(15),v) 2750 2591 if(ierr/=NF_NOERR) then 2751 2592 write(*,*) NF_STRERROR(ierr) … … 2754 2595 ! write(*,*)'lecture v ok',v 2755 2596 2756 #ifdef NC_DOUBLE 2757 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(16),o3) 2758 #else 2759 ierr = NF_GET_VAR_REAL(nid,var3didin(16),o3) 2760 #endif 2597 ierr = NF90_GET_VAR(nid,var3didin(16),o3) 2761 2598 if(ierr/=NF_NOERR) then 2762 2599 write(*,*) NF_STRERROR(ierr) … … 2765 2602 ! write(*,*)'lecture o3 ok',o3 2766 2603 2767 #ifdef NC_DOUBLE 2768 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(2),shf) 2769 #else 2770 ierr = NF_GET_VAR_REAL(nid,var3didin(2),shf) 2771 #endif 2604 ierr = NF90_GET_VAR(nid,var3didin(2),shf) 2772 2605 if(ierr/=NF_NOERR) then 2773 2606 write(*,*) NF_STRERROR(ierr) … … 2776 2609 ! write(*,*)'lecture shf ok',shf 2777 2610 2778 #ifdef NC_DOUBLE 2779 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(3),lhf) 2780 #else 2781 ierr = NF_GET_VAR_REAL(nid,var3didin(3),lhf) 2782 #endif 2611 ierr = NF90_GET_VAR(nid,var3didin(3),lhf) 2783 2612 if(ierr/=NF_NOERR) then 2784 2613 write(*,*) NF_STRERROR(ierr) … … 2787 2616 ! write(*,*)'lecture lhf ok',lhf 2788 2617 2789 #ifdef NC_DOUBLE 2790 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(4),lwup) 2791 #else 2792 ierr = NF_GET_VAR_REAL(nid,var3didin(4),lwup) 2793 #endif 2618 ierr = NF90_GET_VAR(nid,var3didin(4),lwup) 2794 2619 if(ierr/=NF_NOERR) then 2795 2620 write(*,*) NF_STRERROR(ierr) … … 2798 2623 ! write(*,*)'lecture lwup ok',lwup 2799 2624 2800 #ifdef NC_DOUBLE 2801 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(5),swup) 2802 #else 2803 ierr = NF_GET_VAR_REAL(nid,var3didin(5),swup) 2804 #endif 2625 ierr = NF90_GET_VAR(nid,var3didin(5),swup) 2805 2626 if(ierr/=NF_NOERR) then 2806 2627 write(*,*) NF_STRERROR(ierr) … … 2809 2630 ! write(*,*)'lecture swup ok',swup 2810 2631 2811 #ifdef NC_DOUBLE 2812 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(6),tg) 2813 #else 2814 ierr = NF_GET_VAR_REAL(nid,var3didin(6),tg) 2815 #endif 2632 ierr = NF90_GET_VAR(nid,var3didin(6),tg) 2816 2633 if(ierr/=NF_NOERR) then 2817 2634 write(*,*) NF_STRERROR(ierr) … … 2820 2637 ! write(*,*)'lecture tg ok',tg 2821 2638 2822 #ifdef NC_DOUBLE 2823 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(7),ustar) 2824 #else 2825 ierr = NF_GET_VAR_REAL(nid,var3didin(7),ustar) 2826 #endif 2639 ierr = NF90_GET_VAR(nid,var3didin(7),ustar) 2827 2640 if(ierr/=NF_NOERR) then 2828 2641 write(*,*) NF_STRERROR(ierr) … … 2831 2644 ! write(*,*)'lecture ustar ok',ustar 2832 2645 2833 #ifdef NC_DOUBLE 2834 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(8),psurf) 2835 #else 2836 ierr = NF_GET_VAR_REAL(nid,var3didin(8),psurf) 2837 #endif 2646 ierr = NF90_GET_VAR(nid,var3didin(8),psurf) 2838 2647 if(ierr/=NF_NOERR) then 2839 2648 write(*,*) NF_STRERROR(ierr) … … 2842 2651 ! write(*,*)'lecture psurf ok',psurf 2843 2652 2844 #ifdef NC_DOUBLE 2845 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(9),ug) 2846 #else 2847 ierr = NF_GET_VAR_REAL(nid,var3didin(9),ug) 2848 #endif 2653 ierr = NF90_GET_VAR(nid,var3didin(9),ug) 2849 2654 if(ierr/=NF_NOERR) then 2850 2655 write(*,*) NF_STRERROR(ierr) … … 2853 2658 ! write(*,*)'lecture ug ok',ug 2854 2659 2855 #ifdef NC_DOUBLE 2856 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(10),vg) 2857 #else 2858 ierr = NF_GET_VAR_REAL(nid,var3didin(10),vg) 2859 #endif 2660 ierr = NF90_GET_VAR(nid,var3didin(10),vg) 2860 2661 if(ierr/=NF_NOERR) then 2861 2662 write(*,*) NF_STRERROR(ierr) … … 2864 2665 ! write(*,*)'lecture vg ok',vg 2865 2666 2866 #ifdef NC_DOUBLE 2867 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(17),hadvt) 2868 #else 2869 ierr = NF_GET_VAR_REAL(nid,var3didin(17),hadvt) 2870 #endif 2667 ierr = NF90_GET_VAR(nid,var3didin(17),hadvt) 2871 2668 if(ierr/=NF_NOERR) then 2872 2669 write(*,*) NF_STRERROR(ierr) … … 2875 2672 ! write(*,*)'lecture hadvt ok',hadvt 2876 2673 2877 #ifdef NC_DOUBLE 2878 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(18),hadvq) 2879 #else 2880 ierr = NF_GET_VAR_REAL(nid,var3didin(18),hadvq) 2881 #endif 2674 ierr = NF90_GET_VAR(nid,var3didin(18),hadvq) 2882 2675 if(ierr/=NF_NOERR) then 2883 2676 write(*,*) NF_STRERROR(ierr) … … 2886 2679 ! write(*,*)'lecture hadvq ok',hadvq 2887 2680 2888 #ifdef NC_DOUBLE 2889 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(19),hadvu) 2890 #else 2891 ierr = NF_GET_VAR_REAL(nid,var3didin(19),hadvu) 2892 #endif 2681 ierr = NF90_GET_VAR(nid,var3didin(19),hadvu) 2893 2682 if(ierr/=NF_NOERR) then 2894 2683 write(*,*) NF_STRERROR(ierr) … … 2897 2686 ! write(*,*)'lecture hadvu ok',hadvu 2898 2687 2899 #ifdef NC_DOUBLE 2900 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(20),hadvv) 2901 #else 2902 ierr = NF_GET_VAR_REAL(nid,var3didin(20),hadvv) 2903 #endif 2688 ierr = NF90_GET_VAR(nid,var3didin(20),hadvv) 2904 2689 if(ierr/=NF_NOERR) then 2905 2690 write(*,*) NF_STRERROR(ierr) … … 2908 2693 ! write(*,*)'lecture hadvv ok',hadvv 2909 2694 2910 #ifdef NC_DOUBLE 2911 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(21),w) 2912 #else 2913 ierr = NF_GET_VAR_REAL(nid,var3didin(21),w) 2914 #endif 2695 ierr = NF90_GET_VAR(nid,var3didin(21),w) 2915 2696 if(ierr/=NF_NOERR) then 2916 2697 write(*,*) NF_STRERROR(ierr) … … 2919 2700 ! write(*,*)'lecture w ok',w 2920 2701 2921 #ifdef NC_DOUBLE 2922 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(22),omega) 2923 #else 2924 ierr = NF_GET_VAR_REAL(nid,var3didin(22),omega) 2925 #endif 2702 ierr = NF90_GET_VAR(nid,var3didin(22),omega) 2926 2703 if(ierr/=NF_NOERR) then 2927 2704 write(*,*) NF_STRERROR(ierr) … … 2938 2715 !program reading initial profils and forcings of the Gabls4 case study 2939 2716 2717 use netcdf, only: nf90_get_var 2940 2718 2941 2719 implicit none … … 3068 2846 ! call catchaxis(nid,ntime,nlevel,time,z,ierr) 3069 2847 3070 #ifdef NC_DOUBLE 3071 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(1),zz_i) 3072 #else 3073 ierr = NF_GET_VAR_REAL(nid,var3didin(1),zz_i) 3074 #endif 3075 if(ierr/=NF_NOERR) then 3076 write(*,*) NF_STRERROR(ierr) 3077 stop "getvarup" 3078 endif 3079 3080 #ifdef NC_DOUBLE 3081 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(2),depth_sn) 3082 #else 3083 ierr = NF_GET_VAR_REAL(nid,var3didin(2),depth_sn) 3084 #endif 3085 if(ierr/=NF_NOERR) then 3086 write(*,*) NF_STRERROR(ierr) 3087 stop "getvarup" 3088 endif 3089 3090 #ifdef NC_DOUBLE 3091 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(3),ug_i) 3092 #else 3093 ierr = NF_GET_VAR_REAL(nid,var3didin(3),ug_i) 3094 #endif 3095 if(ierr/=NF_NOERR) then 3096 write(*,*) NF_STRERROR(ierr) 3097 stop "getvarup" 3098 endif 3099 3100 #ifdef NC_DOUBLE 3101 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(4),vg_i) 3102 #else 3103 ierr = NF_GET_VAR_REAL(nid,var3didin(4),vg_i) 3104 #endif 3105 if(ierr/=NF_NOERR) then 3106 write(*,*) NF_STRERROR(ierr) 3107 stop "getvarup" 3108 endif 3109 3110 #ifdef NC_DOUBLE 3111 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(5),pf_i) 3112 #else 3113 ierr = NF_GET_VAR_REAL(nid,var3didin(5),pf_i) 3114 #endif 3115 if(ierr/=NF_NOERR) then 3116 write(*,*) NF_STRERROR(ierr) 3117 stop "getvarup" 3118 endif 3119 3120 #ifdef NC_DOUBLE 3121 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(6),th_i) 3122 #else 3123 ierr = NF_GET_VAR_REAL(nid,var3didin(6),th_i) 3124 #endif 3125 if(ierr/=NF_NOERR) then 3126 write(*,*) NF_STRERROR(ierr) 3127 stop "getvarup" 3128 endif 3129 3130 #ifdef NC_DOUBLE 3131 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(7),t_i) 3132 #else 3133 ierr = NF_GET_VAR_REAL(nid,var3didin(7),t_i) 3134 #endif 3135 if(ierr/=NF_NOERR) then 3136 write(*,*) NF_STRERROR(ierr) 3137 stop "getvarup" 3138 endif 3139 3140 #ifdef NC_DOUBLE 3141 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(8),qv_i) 3142 #else 3143 ierr = NF_GET_VAR_REAL(nid,var3didin(8),qv_i) 3144 #endif 3145 if(ierr/=NF_NOERR) then 3146 write(*,*) NF_STRERROR(ierr) 3147 stop "getvarup" 3148 endif 3149 3150 #ifdef NC_DOUBLE 3151 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(9),u_i) 3152 #else 3153 ierr = NF_GET_VAR_REAL(nid,var3didin(9),u_i) 3154 #endif 3155 if(ierr/=NF_NOERR) then 3156 write(*,*) NF_STRERROR(ierr) 3157 stop "getvarup" 3158 endif 3159 3160 #ifdef NC_DOUBLE 3161 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(10),v_i) 3162 #else 3163 ierr = NF_GET_VAR_REAL(nid,var3didin(10),v_i) 3164 #endif 3165 if(ierr/=NF_NOERR) then 3166 write(*,*) NF_STRERROR(ierr) 3167 stop "getvarup" 3168 endif 3169 3170 #ifdef NC_DOUBLE 3171 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(11),hadvt_i) 3172 #else 3173 ierr = NF_GET_VAR_REAL(nid,var3didin(11),hadvt_i) 3174 #endif 3175 if(ierr/=NF_NOERR) then 3176 write(*,*) NF_STRERROR(ierr) 3177 stop "getvarup" 3178 endif 3179 3180 #ifdef NC_DOUBLE 3181 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(12),hadvq_i) 3182 #else 3183 ierr = NF_GET_VAR_REAL(nid,var3didin(12),hadvq_i) 3184 #endif 3185 if(ierr/=NF_NOERR) then 3186 write(*,*) NF_STRERROR(ierr) 3187 stop "getvarup" 3188 endif 3189 3190 #ifdef NC_DOUBLE 3191 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(14),tsnow) 3192 #else 3193 ierr = NF_GET_VAR_REAL(nid,var3didin(14),tsnow) 3194 #endif 3195 if(ierr/=NF_NOERR) then 3196 write(*,*) NF_STRERROR(ierr) 3197 stop "getvarup" 3198 endif 3199 3200 #ifdef NC_DOUBLE 3201 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(15),snow_dens) 3202 #else 3203 ierr = NF_GET_VAR_REAL(nid,var3didin(15),snow_dens) 3204 #endif 3205 if(ierr/=NF_NOERR) then 3206 write(*,*) NF_STRERROR(ierr) 3207 stop "getvarup" 3208 endif 3209 3210 #ifdef NC_DOUBLE 3211 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(16),tg) 3212 #else 3213 ierr = NF_GET_VAR_REAL(nid,var3didin(16),tg) 3214 #endif 2848 ierr = NF90_GET_VAR(nid,var3didin(1),zz_i) 2849 if(ierr/=NF_NOERR) then 2850 write(*,*) NF_STRERROR(ierr) 2851 stop "getvarup" 2852 endif 2853 2854 ierr = NF90_GET_VAR(nid,var3didin(2),depth_sn) 2855 if(ierr/=NF_NOERR) then 2856 write(*,*) NF_STRERROR(ierr) 2857 stop "getvarup" 2858 endif 2859 2860 ierr = NF90_GET_VAR(nid,var3didin(3),ug_i) 2861 if(ierr/=NF_NOERR) then 2862 write(*,*) NF_STRERROR(ierr) 2863 stop "getvarup" 2864 endif 2865 2866 ierr = NF90_GET_VAR(nid,var3didin(4),vg_i) 2867 if(ierr/=NF_NOERR) then 2868 write(*,*) NF_STRERROR(ierr) 2869 stop "getvarup" 2870 endif 2871 2872 ierr = NF90_GET_VAR(nid,var3didin(5),pf_i) 2873 if(ierr/=NF_NOERR) then 2874 write(*,*) NF_STRERROR(ierr) 2875 stop "getvarup" 2876 endif 2877 2878 ierr = NF90_GET_VAR(nid,var3didin(6),th_i) 2879 if(ierr/=NF_NOERR) then 2880 write(*,*) NF_STRERROR(ierr) 2881 stop "getvarup" 2882 endif 2883 2884 ierr = NF90_GET_VAR(nid,var3didin(7),t_i) 2885 if(ierr/=NF_NOERR) then 2886 write(*,*) NF_STRERROR(ierr) 2887 stop "getvarup" 2888 endif 2889 2890 ierr = NF90_GET_VAR(nid,var3didin(8),qv_i) 2891 if(ierr/=NF_NOERR) then 2892 write(*,*) NF_STRERROR(ierr) 2893 stop "getvarup" 2894 endif 2895 2896 ierr = NF90_GET_VAR(nid,var3didin(9),u_i) 2897 if(ierr/=NF_NOERR) then 2898 write(*,*) NF_STRERROR(ierr) 2899 stop "getvarup" 2900 endif 2901 2902 ierr = NF90_GET_VAR(nid,var3didin(10),v_i) 2903 if(ierr/=NF_NOERR) then 2904 write(*,*) NF_STRERROR(ierr) 2905 stop "getvarup" 2906 endif 2907 2908 ierr = NF90_GET_VAR(nid,var3didin(11),hadvt_i) 2909 if(ierr/=NF_NOERR) then 2910 write(*,*) NF_STRERROR(ierr) 2911 stop "getvarup" 2912 endif 2913 2914 ierr = NF90_GET_VAR(nid,var3didin(12),hadvq_i) 2915 if(ierr/=NF_NOERR) then 2916 write(*,*) NF_STRERROR(ierr) 2917 stop "getvarup" 2918 endif 2919 2920 ierr = NF90_GET_VAR(nid,var3didin(14),tsnow) 2921 if(ierr/=NF_NOERR) then 2922 write(*,*) NF_STRERROR(ierr) 2923 stop "getvarup" 2924 endif 2925 2926 ierr = NF90_GET_VAR(nid,var3didin(15),snow_dens) 2927 if(ierr/=NF_NOERR) then 2928 write(*,*) NF_STRERROR(ierr) 2929 stop "getvarup" 2930 endif 2931 2932 ierr = NF90_GET_VAR(nid,var3didin(16),tg) 3215 2933 if(ierr/=NF_NOERR) then 3216 2934 write(*,*) NF_STRERROR(ierr)
Note: See TracChangeset
for help on using the changeset viewer.