Changeset 5073 for LMDZ6/trunk/libf/phylmd/dyn1d
- Timestamp:
- Jul 18, 2024, 4:57:05 PM (5 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd/dyn1d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/dyn1d/mod_1D_amma_read.F90
r4593 r5073 67 67 ierr = NF_OPEN(fich_amma,NF_NOWRITE,nid) 68 68 print*,'fich_amma,NF_NOWRITE,nid ',fich_amma,NF_NOWRITE,nid 69 if (ierr .NE.NF_NOERR) then69 if (ierr/=NF_NOERR) then 70 70 write(*,*) 'ERROR: GROS Pb opening forcings nc file ' 71 71 write(*,*) NF_STRERROR(ierr) … … 74 74 !....................................................................... 75 75 ierr=NF_INQ_DIMID(nid,'lev',rid) 76 IF (ierr .NE.NF_NOERR) THEN76 IF (ierr/=NF_NOERR) THEN 77 77 print*, 'Oh probleme lecture dimension zz' 78 78 ENDIF … … 83 83 print*,'nid,rid',nid,rid 84 84 nt_amma=0 85 IF (ierr .NE.NF_NOERR) THEN85 IF (ierr/=NF_NOERR) THEN 86 86 stop 'probleme lecture dimension sens' 87 87 ENDIF … … 268 268 ! call catchaxis(nid,ntime,nlevel,time,z,ierr) 269 269 270 #ifdef NC_DOUBLE 271 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(1),zz) 272 #else 273 ierr = NF_GET_VAR_REAL(nid,var3didin(1),zz) 274 #endif 270 ierr = nf90_get_var(nid,var3didin(1),zz) 275 271 if(ierr/=NF_NOERR) then 276 272 write(*,*) NF_STRERROR(ierr) … … 279 275 ! write(*,*)'lecture z ok',zz 280 276 281 #ifdef NC_DOUBLE 282 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(2),temp) 283 #else 284 ierr = NF_GET_VAR_REAL(nid,var3didin(2),temp) 285 #endif 277 ierr = nf90_get_var(nid,var3didin(2),temp) 286 278 if(ierr/=NF_NOERR) then 287 279 write(*,*) NF_STRERROR(ierr) … … 290 282 ! write(*,*)'lecture th ok',temp 291 283 292 #ifdef NC_DOUBLE 293 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(3),qv) 294 #else 295 ierr = NF_GET_VAR_REAL(nid,var3didin(3),qv) 296 #endif 284 ierr = nf90_get_var(nid,var3didin(3),qv) 297 285 if(ierr/=NF_NOERR) then 298 286 write(*,*) NF_STRERROR(ierr) … … 301 289 ! write(*,*)'lecture qv ok',qv 302 290 303 #ifdef NC_DOUBLE 304 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(4),u) 305 #else 306 ierr = NF_GET_VAR_REAL(nid,var3didin(4),u) 307 #endif 291 ierr = nf90_get_var(nid,var3didin(4),u) 308 292 if(ierr/=NF_NOERR) then 309 293 write(*,*) NF_STRERROR(ierr) … … 312 296 ! write(*,*)'lecture u ok',u 313 297 314 #ifdef NC_DOUBLE 315 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(5),v) 316 #else 317 ierr = NF_GET_VAR_REAL(nid,var3didin(5),v) 318 #endif 298 ierr = nf90_get_var(nid,var3didin(5),v) 319 299 if(ierr/=NF_NOERR) then 320 300 write(*,*) NF_STRERROR(ierr) … … 323 303 ! write(*,*)'lecture v ok',v 324 304 325 #ifdef NC_DOUBLE 326 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(6),dw) 327 #else 328 ierr = NF_GET_VAR_REAL(nid,var3didin(6),dw) 329 #endif 305 ierr = nf90_get_var(nid,var3didin(6),dw) 330 306 if(ierr/=NF_NOERR) then 331 307 write(*,*) NF_STRERROR(ierr) … … 334 310 ! write(*,*)'lecture w ok',dw 335 311 336 #ifdef NC_DOUBLE 337 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(7),dt) 338 #else 339 ierr = NF_GET_VAR_REAL(nid,var3didin(7),dt) 340 #endif 312 ierr = nf90_get_var(nid,var3didin(7),dt) 341 313 if(ierr/=NF_NOERR) then 342 314 write(*,*) NF_STRERROR(ierr) … … 345 317 ! write(*,*)'lecture dt ok',dt 346 318 347 #ifdef NC_DOUBLE 348 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(8),dq) 349 #else 350 ierr = NF_GET_VAR_REAL(nid,var3didin(8),dq) 351 #endif 319 ierr = nf90_get_var(nid,var3didin(8),dq) 352 320 if(ierr/=NF_NOERR) then 353 321 write(*,*) NF_STRERROR(ierr) … … 356 324 ! write(*,*)'lecture dq ok',dq 357 325 358 #ifdef NC_DOUBLE 359 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(9),sens) 360 #else 361 ierr = NF_GET_VAR_REAL(nid,var3didin(9),sens) 362 #endif 326 ierr = nf90_get_var(nid,var3didin(9),sens) 363 327 if(ierr/=NF_NOERR) then 364 328 write(*,*) NF_STRERROR(ierr) … … 367 331 ! write(*,*)'lecture sens ok',sens 368 332 369 #ifdef NC_DOUBLE 370 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(10),flat) 371 #else 372 ierr = NF_GET_VAR_REAL(nid,var3didin(10),flat) 373 #endif 333 ierr = nf90_get_var(nid,var3didin(10),flat) 374 334 if(ierr/=NF_NOERR) then 375 335 write(*,*) NF_STRERROR(ierr) … … 378 338 ! write(*,*)'lecture flat ok',flat 379 339 380 #ifdef NC_DOUBLE 381 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(11),pp) 382 #else 383 ierr = NF_GET_VAR_REAL(nid,var3didin(11),pp) 384 #endif 340 ierr = nf90_get_var(nid,var3didin(11),pp) 385 341 if(ierr/=NF_NOERR) then 386 342 write(*,*) NF_STRERROR(ierr) … … 429 385 430 386 431 if (forcing_type .eq.6) then387 if (forcing_type==6) then 432 388 ! Check that initial day of the simulation consistent with AMMA case: 433 if (annee_ref .ne.2006) then389 if (annee_ref/=2006) then 434 390 print*,'Pour AMMA, annee_ref doit etre 2006' 435 391 print*,'Changer annee_ref dans run.def' 436 392 stop 437 393 endif 438 if (annee_ref .eq.2006 .and. day1.lt.day_ini_amma) then439 print*,'AMMA a d ébutéle 10 juillet 2006',day1,day_ini_amma394 if (annee_ref==2006 .and. day1<day_ini_amma) then 395 print*,'AMMA a d�but� le 10 juillet 2006',day1,day_ini_amma 440 396 print*,'Changer dayref dans run.def' 441 397 stop 442 398 endif 443 if (annee_ref .eq.2006 .and. day1.gt.day_ini_amma+1) then399 if (annee_ref==2006 .and. day1>day_ini_amma+1) then 444 400 print*,'AMMA a fini le 11 juillet' 445 401 print*,'Changer dayref ou nday dans run.def' … … 464 420 465 421 it_amma1=INT(timeit/dt_amma)+1 466 IF (it_amma1 .EQ.nt_amma) THEN422 IF (it_amma1 == nt_amma) THEN 467 423 it_amma2=it_amma1 468 424 ELSE … … 472 428 time_amma2=(it_amma2-1)*dt_amma 473 429 474 if (it_amma1 .gt.nt_amma) then430 if (it_amma1 > nt_amma) then 475 431 write(*,*) 'PB-stop: day, it_amma1, it_amma2, timeit: ' & 476 432 & ,day,day_ini_amma,it_amma1,it_amma2,timeit/86400. … … 479 435 480 436 ! time interpolation: 481 IF (it_amma1 .EQ.it_amma2) THEN437 IF (it_amma1 == it_amma2) THEN 482 438 frac=0. 483 439 ELSE -
LMDZ6/trunk/libf/phylmd/dyn1d/mod_1D_cases_read.F90
r4593 r5073 99 99 ierr = NF_OPEN(fich_cas,NF_NOWRITE,nid) 100 100 print*,'fich_cas,NF_NOWRITE,nid ',fich_cas,NF_NOWRITE,nid 101 if (ierr .NE.NF_NOERR) then101 if (ierr/=NF_NOERR) then 102 102 write(*,*) 'ERROR: GROS Pb opening forcings nc file ' 103 103 write(*,*) NF_STRERROR(ierr) … … 106 106 !....................................................................... 107 107 ierr=NF_INQ_DIMID(nid,'lat',rid) 108 IF (ierr .NE.NF_NOERR) THEN108 IF (ierr/=NF_NOERR) THEN 109 109 print*, 'Oh probleme lecture dimension lat' 110 110 ENDIF … … 113 113 !....................................................................... 114 114 ierr=NF_INQ_DIMID(nid,'lon',rid) 115 IF (ierr .NE.NF_NOERR) THEN115 IF (ierr/=NF_NOERR) THEN 116 116 print*, 'Oh probleme lecture dimension lon' 117 117 ENDIF … … 120 120 !....................................................................... 121 121 ierr=NF_INQ_DIMID(nid,'lev',rid) 122 IF (ierr .NE.NF_NOERR) THEN122 IF (ierr/=NF_NOERR) THEN 123 123 print*, 'Oh probleme lecture dimension zz' 124 124 ENDIF … … 129 129 print*,'nid,rid',nid,rid 130 130 nt_cas=0 131 IF (ierr .NE.NF_NOERR) THEN131 IF (ierr/=NF_NOERR) THEN 132 132 stop 'probleme lecture dimension sens' 133 133 ENDIF … … 532 532 endif 533 533 534 #ifdef NC_DOUBLE 535 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(1),zz) 536 #else 537 ierr = NF_GET_VAR_REAL(nid,var3didin(1),zz) 538 #endif 534 ierr = nf90_get_var(nid,var3didin(1),zz) 539 535 if(ierr/=NF_NOERR) then 540 536 write(*,*) NF_STRERROR(ierr) … … 543 539 ! write(*,*)'lecture z ok',zz 544 540 545 #ifdef NC_DOUBLE 546 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(2),pp) 547 #else 548 ierr = NF_GET_VAR_REAL(nid,var3didin(2),pp) 549 #endif 541 ierr = nf90_get_var(nid,var3didin(2),pp) 550 542 if(ierr/=NF_NOERR) then 551 543 write(*,*) NF_STRERROR(ierr) … … 555 547 556 548 557 #ifdef NC_DOUBLE 558 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(3),temp) 559 #else 560 ierr = NF_GET_VAR_REAL(nid,var3didin(3),temp) 561 #endif 549 ierr = nf90_get_var(nid,var3didin(3),temp) 562 550 if(ierr/=NF_NOERR) then 563 551 write(*,*) NF_STRERROR(ierr) … … 566 554 ! write(*,*)'lecture T ok',temp 567 555 568 #ifdef NC_DOUBLE 569 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(4),qv) 570 #else 571 ierr = NF_GET_VAR_REAL(nid,var3didin(4),qv) 572 #endif 556 ierr = nf90_get_var(nid,var3didin(4),qv) 573 557 if(ierr/=NF_NOERR) then 574 558 write(*,*) NF_STRERROR(ierr) … … 577 561 ! write(*,*)'lecture qv ok',qv 578 562 579 #ifdef NC_DOUBLE 580 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(5),rh) 581 #else 582 ierr = NF_GET_VAR_REAL(nid,var3didin(5),rh) 583 #endif 563 ierr = nf90_get_var(nid,var3didin(5),rh) 584 564 if(ierr/=NF_NOERR) then 585 565 write(*,*) NF_STRERROR(ierr) … … 588 568 ! write(*,*)'lecture rh ok',rh 589 569 590 #ifdef NC_DOUBLE 591 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(6),theta) 592 #else 593 ierr = NF_GET_VAR_REAL(nid,var3didin(6),theta) 594 #endif 570 ierr = nf90_get_var(nid,var3didin(6),theta) 595 571 if(ierr/=NF_NOERR) then 596 572 write(*,*) NF_STRERROR(ierr) … … 599 575 ! write(*,*)'lecture theta ok',theta 600 576 601 #ifdef NC_DOUBLE 602 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(7),rv) 603 #else 604 ierr = NF_GET_VAR_REAL(nid,var3didin(7),rv) 605 #endif 577 ierr = nf90_get_var(nid,var3didin(7),rv) 606 578 if(ierr/=NF_NOERR) then 607 579 write(*,*) NF_STRERROR(ierr) … … 610 582 ! write(*,*)'lecture rv ok',rv 611 583 612 #ifdef NC_DOUBLE 613 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(8),u) 614 #else 615 ierr = NF_GET_VAR_REAL(nid,var3didin(8),u) 616 #endif 584 ierr = nf90_get_var(nid,var3didin(8),u) 617 585 if(ierr/=NF_NOERR) then 618 586 write(*,*) NF_STRERROR(ierr) … … 621 589 ! write(*,*)'lecture u ok',u 622 590 623 #ifdef NC_DOUBLE 624 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(9),v) 625 #else 626 ierr = NF_GET_VAR_REAL(nid,var3didin(9),v) 627 #endif 591 ierr = nf90_get_var(nid,var3didin(9),v) 628 592 if(ierr/=NF_NOERR) then 629 593 write(*,*) NF_STRERROR(ierr) … … 632 596 ! write(*,*)'lecture v ok',v 633 597 634 #ifdef NC_DOUBLE 635 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(10),ug) 636 #else 637 ierr = NF_GET_VAR_REAL(nid,var3didin(10),ug) 638 #endif 598 ierr = nf90_get_var(nid,var3didin(10),ug) 639 599 if(ierr/=NF_NOERR) then 640 600 write(*,*) NF_STRERROR(ierr) … … 643 603 ! write(*,*)'lecture ug ok',ug 644 604 645 #ifdef NC_DOUBLE 646 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(11),vg) 647 #else 648 ierr = NF_GET_VAR_REAL(nid,var3didin(11),vg) 649 #endif 605 ierr = nf90_get_var(nid,var3didin(11),vg) 650 606 if(ierr/=NF_NOERR) then 651 607 write(*,*) NF_STRERROR(ierr) … … 654 610 ! write(*,*)'lecture vg ok',vg 655 611 656 #ifdef NC_DOUBLE 657 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(12),w) 658 #else 659 ierr = NF_GET_VAR_REAL(nid,var3didin(12),w) 660 #endif 612 ierr = nf90_get_var(nid,var3didin(12),w) 661 613 if(ierr/=NF_NOERR) then 662 614 write(*,*) NF_STRERROR(ierr) … … 665 617 ! write(*,*)'lecture w ok',w 666 618 667 #ifdef NC_DOUBLE 668 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(13),du) 669 #else 670 ierr = NF_GET_VAR_REAL(nid,var3didin(13),du) 671 #endif 619 ierr = nf90_get_var(nid,var3didin(13),du) 672 620 if(ierr/=NF_NOERR) then 673 621 write(*,*) NF_STRERROR(ierr) … … 676 624 ! write(*,*)'lecture du ok',du 677 625 678 #ifdef NC_DOUBLE 679 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(14),hu) 680 #else 681 ierr = NF_GET_VAR_REAL(nid,var3didin(14),hu) 682 #endif 626 ierr = nf90_get_var(nid,var3didin(14),hu) 683 627 if(ierr/=NF_NOERR) then 684 628 write(*,*) NF_STRERROR(ierr) … … 687 631 ! write(*,*)'lecture hu ok',hu 688 632 689 #ifdef NC_DOUBLE 690 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(15),vu) 691 #else 692 ierr = NF_GET_VAR_REAL(nid,var3didin(15),vu) 693 #endif 633 ierr = nf90_get_var(nid,var3didin(15),vu) 694 634 if(ierr/=NF_NOERR) then 695 635 write(*,*) NF_STRERROR(ierr) … … 698 638 ! write(*,*)'lecture vu ok',vu 699 639 700 #ifdef NC_DOUBLE 701 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(16),dv) 702 #else 703 ierr = NF_GET_VAR_REAL(nid,var3didin(16),dv) 704 #endif 640 ierr = nf90_get_var(nid,var3didin(16),dv) 705 641 if(ierr/=NF_NOERR) then 706 642 write(*,*) NF_STRERROR(ierr) … … 709 645 ! write(*,*)'lecture dv ok',dv 710 646 711 #ifdef NC_DOUBLE 712 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(17),hv) 713 #else 714 ierr = NF_GET_VAR_REAL(nid,var3didin(17),hv) 715 #endif 647 ierr = nf90_get_var(nid,var3didin(17),hv) 716 648 if(ierr/=NF_NOERR) then 717 649 write(*,*) NF_STRERROR(ierr) … … 720 652 ! write(*,*)'lecture hv ok',hv 721 653 722 #ifdef NC_DOUBLE 723 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(18),vv) 724 #else 725 ierr = NF_GET_VAR_REAL(nid,var3didin(18),vv) 726 #endif 654 ierr = nf90_get_var(nid,var3didin(18),vv) 727 655 if(ierr/=NF_NOERR) then 728 656 write(*,*) NF_STRERROR(ierr) … … 731 659 ! write(*,*)'lecture vv ok',vv 732 660 733 #ifdef NC_DOUBLE 734 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(19),dt) 735 #else 736 ierr = NF_GET_VAR_REAL(nid,var3didin(19),dt) 737 #endif 661 ierr = nf90_get_var(nid,var3didin(19),dt) 738 662 if(ierr/=NF_NOERR) then 739 663 write(*,*) NF_STRERROR(ierr) … … 742 666 ! write(*,*)'lecture dt ok',dt 743 667 744 #ifdef NC_DOUBLE 745 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(20),ht) 746 #else 747 ierr = NF_GET_VAR_REAL(nid,var3didin(20),ht) 748 #endif 668 ierr = nf90_get_var(nid,var3didin(20),ht) 749 669 if(ierr/=NF_NOERR) then 750 670 write(*,*) NF_STRERROR(ierr) … … 753 673 ! write(*,*)'lecture ht ok',ht 754 674 755 #ifdef NC_DOUBLE 756 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(21),vt) 757 #else 758 ierr = NF_GET_VAR_REAL(nid,var3didin(21),vt) 759 #endif 675 ierr = nf90_get_var(nid,var3didin(21),vt) 760 676 if(ierr/=NF_NOERR) then 761 677 write(*,*) NF_STRERROR(ierr) … … 764 680 ! write(*,*)'lecture vt ok',vt 765 681 766 #ifdef NC_DOUBLE 767 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(22),dq) 768 #else 769 ierr = NF_GET_VAR_REAL(nid,var3didin(22),dq) 770 #endif 682 ierr = nf90_get_var(nid,var3didin(22),dq) 771 683 if(ierr/=NF_NOERR) then 772 684 write(*,*) NF_STRERROR(ierr) … … 775 687 ! write(*,*)'lecture dq ok',dq 776 688 777 #ifdef NC_DOUBLE 778 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(23),hq) 779 #else 780 ierr = NF_GET_VAR_REAL(nid,var3didin(23),hq) 781 #endif 689 ierr = nf90_get_var(nid,var3didin(23),hq) 782 690 if(ierr/=NF_NOERR) then 783 691 write(*,*) NF_STRERROR(ierr) … … 786 694 ! write(*,*)'lecture hq ok',hq 787 695 788 #ifdef NC_DOUBLE 789 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(24),vq) 790 #else 791 ierr = NF_GET_VAR_REAL(nid,var3didin(24),vq) 792 #endif 696 ierr = nf90_get_var(nid,var3didin(24),vq) 793 697 if(ierr/=NF_NOERR) then 794 698 write(*,*) NF_STRERROR(ierr) … … 797 701 ! write(*,*)'lecture vq ok',vq 798 702 799 #ifdef NC_DOUBLE 800 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(25),dth) 801 #else 802 ierr = NF_GET_VAR_REAL(nid,var3didin(25),dth) 803 #endif 703 ierr = nf90_get_var(nid,var3didin(25),dth) 804 704 if(ierr/=NF_NOERR) then 805 705 write(*,*) NF_STRERROR(ierr) … … 808 708 ! write(*,*)'lecture dth ok',dth 809 709 810 #ifdef NC_DOUBLE 811 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(26),hth) 812 #else 813 ierr = NF_GET_VAR_REAL(nid,var3didin(26),hth) 814 #endif 710 ierr = nf90_get_var(nid,var3didin(26),hth) 815 711 if(ierr/=NF_NOERR) then 816 712 write(*,*) NF_STRERROR(ierr) … … 819 715 ! write(*,*)'lecture hth ok',hth 820 716 821 #ifdef NC_DOUBLE 822 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(27),vth) 823 #else 824 ierr = NF_GET_VAR_REAL(nid,var3didin(27),vth) 825 #endif 717 ierr = nf90_get_var(nid,var3didin(27),vth) 826 718 if(ierr/=NF_NOERR) then 827 719 write(*,*) NF_STRERROR(ierr) … … 830 722 ! write(*,*)'lecture vth ok',vth 831 723 832 #ifdef NC_DOUBLE 833 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(28),dr) 834 #else 835 ierr = NF_GET_VAR_REAL(nid,var3didin(28),dr) 836 #endif 724 ierr = nf90_get_var(nid,var3didin(28),dr) 837 725 if(ierr/=NF_NOERR) then 838 726 write(*,*) NF_STRERROR(ierr) … … 841 729 ! write(*,*)'lecture dr ok',dr 842 730 843 #ifdef NC_DOUBLE 844 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(29),hr) 845 #else 846 ierr = NF_GET_VAR_REAL(nid,var3didin(29),hr) 847 #endif 731 ierr = nf90_get_var(nid,var3didin(29),hr) 848 732 if(ierr/=NF_NOERR) then 849 733 write(*,*) NF_STRERROR(ierr) … … 852 736 ! write(*,*)'lecture hr ok',hr 853 737 854 #ifdef NC_DOUBLE 855 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(30),vr) 856 #else 857 ierr = NF_GET_VAR_REAL(nid,var3didin(30),vr) 858 #endif 738 ierr = nf90_get_var(nid,var3didin(30),vr) 859 739 if(ierr/=NF_NOERR) then 860 740 write(*,*) NF_STRERROR(ierr) … … 863 743 ! write(*,*)'lecture vr ok',vr 864 744 865 #ifdef NC_DOUBLE 866 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(31),dtrad) 867 #else 868 ierr = NF_GET_VAR_REAL(nid,var3didin(31),dtrad) 869 #endif 745 ierr = nf90_get_var(nid,var3didin(31),dtrad) 870 746 if(ierr/=NF_NOERR) then 871 747 write(*,*) NF_STRERROR(ierr) … … 874 750 ! write(*,*)'lecture dtrad ok',dtrad 875 751 876 #ifdef NC_DOUBLE 877 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(32),sens) 878 #else 879 ierr = NF_GET_VAR_REAL(nid,var3didin(32),sens) 880 #endif 752 ierr = nf90_get_var(nid,var3didin(32),sens) 881 753 if(ierr/=NF_NOERR) then 882 754 write(*,*) NF_STRERROR(ierr) … … 885 757 ! write(*,*)'lecture sens ok',sens 886 758 887 #ifdef NC_DOUBLE 888 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(33),flat) 889 #else 890 ierr = NF_GET_VAR_REAL(nid,var3didin(33),flat) 891 #endif 759 ierr = nf90_get_var(nid,var3didin(33),flat) 892 760 if(ierr/=NF_NOERR) then 893 761 write(*,*) NF_STRERROR(ierr) … … 896 764 ! write(*,*)'lecture flat ok',flat 897 765 898 #ifdef NC_DOUBLE 899 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(34),ts) 900 #else 901 ierr = NF_GET_VAR_REAL(nid,var3didin(34),ts) 902 #endif 766 ierr = nf90_get_var(nid,var3didin(34),ts) 903 767 if(ierr/=NF_NOERR) then 904 768 write(*,*) NF_STRERROR(ierr) … … 907 771 ! write(*,*)'lecture ts ok',ts 908 772 909 #ifdef NC_DOUBLE 910 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(35),ustar) 911 #else 912 ierr = NF_GET_VAR_REAL(nid,var3didin(35),ustar) 913 #endif 773 ierr = nf90_get_var(nid,var3didin(35),ustar) 914 774 if(ierr/=NF_NOERR) then 915 775 write(*,*) NF_STRERROR(ierr) … … 918 778 ! write(*,*)'lecture ustar ok',ustar 919 779 920 #ifdef NC_DOUBLE 921 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(36),uw) 922 #else 923 ierr = NF_GET_VAR_REAL(nid,var3didin(36),uw) 924 #endif 780 ierr = nf90_get_var(nid,var3didin(36),uw) 925 781 if(ierr/=NF_NOERR) then 926 782 write(*,*) NF_STRERROR(ierr) … … 929 785 ! write(*,*)'lecture uw ok',uw 930 786 931 #ifdef NC_DOUBLE 932 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(37),vw) 933 #else 934 ierr = NF_GET_VAR_REAL(nid,var3didin(37),vw) 935 #endif 787 ierr = nf90_get_var(nid,var3didin(37),vw) 936 788 if(ierr/=NF_NOERR) then 937 789 write(*,*) NF_STRERROR(ierr) … … 940 792 ! write(*,*)'lecture vw ok',vw 941 793 942 #ifdef NC_DOUBLE 943 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(38),q1) 944 #else 945 ierr = NF_GET_VAR_REAL(nid,var3didin(38),q1) 946 #endif 794 ierr = nf90_get_var(nid,var3didin(38),q1) 947 795 if(ierr/=NF_NOERR) then 948 796 write(*,*) NF_STRERROR(ierr) … … 951 799 ! write(*,*)'lecture q1 ok',q1 952 800 953 #ifdef NC_DOUBLE 954 ierr = NF_GET_VAR_DOUBLE(nid,var3didin(39),q2) 955 #else 956 ierr = NF_GET_VAR_REAL(nid,var3didin(39),q2) 957 #endif 801 ierr = nf90_get_var(nid,var3didin(39),q2) 958 802 if(ierr/=NF_NOERR) then 959 803 write(*,*) NF_STRERROR(ierr) … … 1081 925 1082 926 it_cas1=INT(timeit/pdt_cas)+1 1083 IF (it_cas1 .EQ.nt_cas) THEN927 IF (it_cas1 == nt_cas) THEN 1084 928 it_cas2=it_cas1 1085 929 ELSE … … 1093 937 print *,'time_cas2=',time_cas2 1094 938 1095 if (it_cas1 .gt.nt_cas) then939 if (it_cas1 > nt_cas) then 1096 940 write(*,*) 'PB-stop: day, day_ju_ini_cas,it_cas1, it_cas2, timeit: ' & 1097 941 & ,day,day_ju_ini_cas,it_cas1,it_cas2,timeit … … 1100 944 1101 945 ! time interpolation: 1102 IF (it_cas1 .EQ.it_cas2) THEN946 IF (it_cas1 == it_cas2) THEN 1103 947 frac=0. 1104 948 ELSE
Note: See TracChangeset
for help on using the changeset viewer.