Changeset 1450 for trunk/NEMO/TOP_SRC
- Timestamp:
- 2009-05-15T16:12:12+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/TOP_SRC/trcdia.F90
r1391 r1450 29 29 USE lib_mpp 30 30 USE ioipsl 31 USE iom 31 32 32 33 IMPLICIT NONE … … 117 118 ! -------------- 118 119 120 CALL iom_setkt( kt + ndttrc - 1 ) 121 119 122 ! local variable for debugging 120 123 ll_print = .FALSE. ! change it to true for more control print … … 207 210 208 211 DO jn = 1, jptra 209 IF( lutsav(jn) ) THEN 210 cltra = ctrcnm(jn) ! short title for tracer 211 CALL histwrite( nit5, cltra, it, trn(:,:,:,jn), ndimt50, ndext50 ) 212 ENDIF 212 cltra = ctrcnm(jn) ! short title for tracer 213 IF( lutsav(jn) ) CALL histwrite( nit5, cltra, it, trn(:,:,:,jn), ndimt50, ndext50 ) 214 CALL iom_put( ctrcnm(jn), trn(:,:,:,jn) ) 213 215 END DO 214 216 … … 217 219 IF( kt == nitend .OR. kindic < 0 ) CALL histclo( nit5 ) 218 220 ! 221 CALL iom_setkt( kt ) 222 219 223 END SUBROUTINE trcdit_wr 220 224 … … 252 256 ! 0. Initialisation 253 257 ! ----------------- 258 259 CALL iom_setkt( kt + ndttrc - 1 ) 254 260 255 261 ! local variable for debugging … … 439 445 END DO 440 446 END IF 447 CALL iom_put( ctrcnm(jn), trn(:,:,:,jn) ) 441 448 END DO 442 449 … … 449 456 ENDIF 450 457 ! 458 CALL iom_setkt( kt ) 459 451 460 END SUBROUTINE trcdid_wr 452 461 … … 484 493 CHARACTER (len=20) :: cltra, cltrau 485 494 CHARACTER (len=80) :: cltral 486 INTEGER :: j n495 INTEGER :: jl 487 496 INTEGER :: iimi, iima, ijmi, ijma, ipk, it, itmod 488 497 REAL(wp) :: zsto, zout, zdt … … 491 500 ! Initialisation 492 501 ! -------------- 493 502 503 CALL iom_setkt( kt + ndttrc - 1 ) 504 494 505 ! local variable for debugging 495 506 ll_print = .FALSE. … … 546 557 547 558 ! more 3D horizontal arrays 548 DO j n= 1, jpdia3d549 cltra = ctrc3d(j n) ! short title for 3D diagnostic550 cltral = ctrc3l(j n) ! long title for 3D diagnostic551 cltrau = ctrc3u(j n) ! UNIT for 3D diagnostic559 DO jl = 1, jpdia3d 560 cltra = ctrc3d(jl) ! short title for 3D diagnostic 561 cltral = ctrc3l(jl) ! long title for 3D diagnostic 562 cltrau = ctrc3u(jl) ! UNIT for 3D diagnostic 552 563 CALL histdef( nitd, cltra, cltral, cltrau, jpi, jpj, nhoritd, & 553 564 & ipk, 1, ipk, ndepitd, 32, clop, zsto, zout ) … … 555 566 556 567 ! more 2D horizontal arrays 557 DO j n= 1, jpdia2d558 cltra = ctrc2d(j n) ! short title for 2D diagnostic559 cltral = ctrc2l(j n) ! long title for 2D diagnostic560 cltrau = ctrc2u(j n) ! UNIT for 2D diagnostic568 DO jl = 1, jpdia2d 569 cltra = ctrc2d(jl) ! short title for 2D diagnostic 570 cltral = ctrc2l(jl) ! long title for 2D diagnostic 571 cltrau = ctrc2u(jl) ! UNIT for 2D diagnostic 561 572 CALL histdef( nitd, cltra, cltral, cltrau, jpi, jpj, nhoritd, & 562 573 & 1, 1, 1, -99, 32, clop, zsto, zout ) … … 583 594 584 595 ! more 3D horizontal arrays 585 DO jn = 1, jpdia3d 586 cltra = ctrc3d(jn) ! short title for 3D diagnostic 587 CALL histwrite( nitd, cltra, it, trc3d(:,:,:,jn), ndimt50 ,ndext50) 596 DO jl = 1, jpdia3d 597 cltra = ctrc3d(jl) ! short title for 3D diagnostic 598 CALL histwrite( nitd, cltra, it, trc3d(:,:,:,jl), ndimt50 ,ndext50) 599 CALL iom_put( cltra, trc3d(:,:,:,jl) ) 588 600 END DO 589 601 590 602 ! more 2D horizontal arrays 591 DO jn = 1, jpdia2d 592 cltra = ctrc2d(jn) ! short title for 2D diagnostic 593 CALL histwrite(nitd, cltra, it, trc2d(:,:,jn), ndimt51 ,ndext51) 603 DO jl = 1, jpdia2d 604 cltra = ctrc2d(jl) ! short title for 2D diagnostic 605 CALL histwrite(nitd, cltra, it, trc2d(:,:,jl), ndimt51 ,ndext51) 606 CALL iom_put( cltra, trc2d(:,:,jl) ) 594 607 END DO 595 608 … … 598 611 IF( kt == nitend .OR. kindic < 0 ) CALL histclo(nitd) 599 612 ! 613 CALL iom_setkt( kt ) 614 600 615 END SUBROUTINE trcdii_wr 601 616 … … 634 649 CHARACTER (len=20) :: cltra, cltrau 635 650 CHARACTER (len=80) :: cltral 636 INTEGER :: ji, jj, jk, j n651 INTEGER :: ji, jj, jk, jl 637 652 INTEGER :: iimi, iima, ijmi, ijma, ipk, it, itmod 638 653 REAL(wp) :: zsto, zout, zdt … … 642 657 ! -------------- 643 658 659 CALL iom_setkt( kt + ndttrc - 1 ) 660 644 661 ! local variable for debugging 645 662 ll_print = .FALSE. … … 689 706 ! Declare all the output fields as NETCDF variables 690 707 ! biological trends 691 DO j n= 1, jpdiabio692 cltra = ctrbio(j n) ! short title for biological diagnostic693 cltral = ctrbil(j n) ! long title for biological diagnostic694 cltrau = ctrbiu(j n) ! UNIT for biological diagnostic708 DO jl = 1, jpdiabio 709 cltra = ctrbio(jl) ! short title for biological diagnostic 710 cltral = ctrbil(jl) ! long title for biological diagnostic 711 cltrau = ctrbiu(jl) ! UNIT for biological diagnostic 695 712 CALL histdef( nitb, cltra, cltral, cltrau, jpi, jpj, nhoritb, & 696 713 & ipk, 1, ipk, ndepitb, 32, clop, zsto, zout) … … 715 732 ENDIF 716 733 717 DO jn = 1, jpdiabio 718 cltra = ctrbio(jn) ! short title for biological diagnostic 719 CALL histwrite(nitb, cltra, it, trbio(:,:,:,jn), ndimt50,ndext50) 734 DO jl = 1, jpdiabio 735 cltra = ctrbio(jl) ! short title for biological diagnostic 736 CALL histwrite(nitb, cltra, it, trbio(:,:,:,jl), ndimt50,ndext50) 737 CALL iom_put( cltra, trbio(:,:,:,jl) ) 720 738 END DO 721 739 … … 724 742 IF( kt == nitend .OR. kindic < 0 ) CALL histclo( nitb ) 725 743 ! 744 CALL iom_setkt( kt ) 745 726 746 END SUBROUTINE trcdib_wr 727 747
Note: See TracChangeset
for help on using the changeset viewer.