Changes in src/verttransform.f90 [341f4b7:6481010] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/verttransform.f90
r341f4b7 r6481010 91 91 92 92 logical :: init = .true. 93 logical :: init_w = .false. 94 logical :: init_r = .false. 95 93 96 94 97 !ZHG SEP 2014 tests … … 103 106 ! CHARACTER(LEN=3) :: aspec 104 107 ! integer :: virr=0 105 real :: tot_cloud_h106 real :: dbg_height(nzmax)108 !real :: tot_cloud_h 109 !real :: dbg_height(nzmax) 107 110 !ZHG 108 111 … … 123 126 if (init) then 124 127 128 129 if (init_r) then 130 131 open(333,file='heights.txt', & 132 form='formatted') 133 do kz=1,nuvz 134 read(333,*) height(kz) 135 end do 136 close(333) 137 write(*,*) 'height read' 138 else 139 140 125 141 ! Search for a point with high surface pressure (i.e. not above significant topography) 126 142 ! Then, use this point to construct a reference z profile, to be used at all times … … 161 177 end do 162 178 179 if (init_w) then 180 open(333,file='heights.txt', & 181 form='formatted') 182 do kz=1,nuvz 183 write(333,*) height(kz) 184 end do 185 close(333) 186 endif 187 188 endif ! init 163 189 164 190 ! Determine highest levels that can be within PBL … … 178 204 init=.false. 179 205 180 dbg_height = height206 ! dbg_height = height 181 207 182 208 endif … … 598 624 convp=convprec(ix,jy,1,n) 599 625 prec=lsp+convp 600 tot_cloud_h=0626 ! tot_cloud_h=0 601 627 ! Find clouds in the vertical 602 628 do kz=1, nz-1 !go from top to bottom … … 604 630 ! assuming rho is in kg/m3 and hz in m gives: kg/kg * kg/m3 *m3/kg /m = m2/m3 605 631 clw(ix,jy,kz,n)=(clwc(ix,jy,kz,n)*rho(ix,jy,kz,n))*(height(kz+1)-height(kz)) 606 tot_cloud_h=tot_cloud_h+(height(kz+1)-height(kz))632 ! tot_cloud_h=tot_cloud_h+(height(kz+1)-height(kz)) 607 633 608 634 ! icloud_stats(ix,jy,4,n)= icloud_stats(ix,jy,4,n)+clw(ix,jy,kz,n) ! Column cloud water [m3/m3]
Note: See TracChangeset
for help on using the changeset viewer.