Changeset 3014 for palm/trunk/SOURCE/turbulence_closure_mod.f90
- Timestamp:
- May 9, 2018 8:42:38 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/turbulence_closure_mod.f90
r3004 r3014 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix: nzb_do and nzt_do were not used for 3d data output 28 ! 29 ! 3004 2018-04-27 12:33:25Z Giersch 27 30 ! Further allocation checks implemented 28 31 ! … … 626 629 REAL(wp) :: fill_value = -999.0_wp !< value for the _FillValue attribute 627 630 628 REAL(wp), DIMENSION(nxl:nxr,nys:nyn,nzb :nzt+1) :: local_pf !< local631 REAL(wp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do) :: local_pf !< local 629 632 !< array to which output data is resorted to 630 633 … … 723 726 !> Define 3D output variables. 724 727 !------------------------------------------------------------------------------! 725 SUBROUTINE tcm_data_output_3d( av, variable, found, local_pf )728 SUBROUTINE tcm_data_output_3d( av, variable, found, local_pf, nzb_do, nzt_do ) 726 729 727 730 … … 733 736 CHARACTER (LEN=*) :: variable !< 734 737 735 INTEGER(iwp) :: av !< 736 INTEGER(iwp) :: i !< 737 INTEGER(iwp) :: j !< 738 INTEGER(iwp) :: k !< 738 INTEGER(iwp) :: av !< 739 INTEGER(iwp) :: i !< 740 INTEGER(iwp) :: j !< 741 INTEGER(iwp) :: k !< 742 INTEGER(iwp) :: nzb_do !< lower limit of the data output (usually 0) 743 INTEGER(iwp) :: nzt_do !< vertical upper limit of the data output (usually nz_do3d) 739 744 740 745 LOGICAL :: found !< … … 742 747 REAL(wp) :: fill_value = -999.0_wp !< value for the _FillValue attribute 743 748 744 REAL(sp), DIMENSION(nxl:nxr,nys:nyn,nzb :nzt+1) :: local_pf !< local749 REAL(sp), DIMENSION(nxl:nxr,nys:nyn,nzb_do:nzt_do) :: local_pf !< local 745 750 !< array to which output data is resorted to 746 751 … … 756 761 DO i = nxl, nxr 757 762 DO j = nys, nyn 758 DO k = nzb , nzt+1763 DO k = nzb_do, nzt_do 759 764 local_pf(i,j,k) = diss(k,j,i) 760 765 ENDDO … … 768 773 DO i = nxl, nxr 769 774 DO j = nys, nyn 770 DO k = nzb , nzt+1775 DO k = nzb_do, nzt_do 771 776 local_pf(i,j,k) = diss_av(k,j,i) 772 777 ENDDO … … 779 784 DO i = nxl, nxr 780 785 DO j = nys, nyn 781 DO k = nzb , nzt+1786 DO k = nzb_do, nzt_do 782 787 local_pf(i,j,k) = kh(k,j,i) 783 788 ENDDO … … 791 796 DO i = nxl, nxr 792 797 DO j = nys, nyn 793 DO k = nzb , nzt+1798 DO k = nzb_do, nzt_do 794 799 local_pf(i,j,k) = kh_av(k,j,i) 795 800 ENDDO … … 802 807 DO i = nxl, nxr 803 808 DO j = nys, nyn 804 DO k = nzb , nzt+1809 DO k = nzb_do, nzt_do 805 810 local_pf(i,j,k) = km(k,j,i) 806 811 ENDDO … … 814 819 DO i = nxl, nxr 815 820 DO j = nys, nyn 816 DO k = nzb , nzt+1821 DO k = nzb_do, nzt_do 817 822 local_pf(i,j,k) = km_av(k,j,i) 818 823 ENDDO … … 825 830 DO i = nxl, nxr 826 831 DO j = nys, nyn 827 DO k = nzb , nzt+1832 DO k = nzb_do, nzt_do 828 833 local_pf(i,j,k) = dummy1(k,j,i) 829 834 ENDDO … … 836 841 DO i = nxl, nxr 837 842 DO j = nys, nyn 838 DO k = nzb , nzt+1843 DO k = nzb_do, nzt_do 839 844 local_pf(i,j,k) = dummy2(k,j,i) 840 845 ENDDO … … 847 852 DO i = nxl, nxr 848 853 DO j = nys, nyn 849 DO k = nzb , nzt+1854 DO k = nzb_do, nzt_do 850 855 local_pf(i,j,k) = dummy3(k,j,i) 851 856 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.