Changeset 2101 for trunk/LMDZ.GENERIC/libf/phystd/thermcell_flux.F90
- Timestamp:
- Feb 15, 2019, 2:43:57 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/thermcell_flux.F90
r2092 r2101 2 2 ! 3 3 ! 4 SUBROUTINE thermcell_flux(ngrid,klev,ptimestep,masse,&5 & lalim,lmin,lmax,alim_star,entr_star,detr_star,&6 & f,rhobarz,zlev,zw2,fm,entr,&7 &detr,zqla,lev_out,lunout1,igout)4 SUBROUTINE thermcell_flux(ngrid,nlay,ptimestep,masse, & 5 lalim,lmin,lmax,alim_star,entr_star,detr_star, & 6 f,rhobarz,zlev,zw2,fm,entr, & 7 detr,zqla,lev_out,lunout1,igout) 8 8 9 9 … … 26 26 27 27 INTEGER ngrid 28 INTEGER klev28 INTEGER nlay 29 29 INTEGER igout 30 30 INTEGER lev_out … … 34 34 INTEGER lalim(ngrid) 35 35 36 REAL alim_star(ngrid, klev)37 REAL entr_star(ngrid, klev)38 REAL detr_star(ngrid, klev)39 REAL zw2(ngrid, klev+1)40 REAL zlev(ngrid, klev+1)41 REAL masse(ngrid, klev)36 REAL alim_star(ngrid,nlay) 37 REAL entr_star(ngrid,nlay) 38 REAL detr_star(ngrid,nlay) 39 REAL zw2(ngrid,nlay+1) 40 REAL zlev(ngrid,nlay+1) 41 REAL masse(ngrid,nlay) 42 42 REAL ptimestep 43 REAL rhobarz(ngrid, klev)43 REAL rhobarz(ngrid,nlay) 44 44 REAL f(ngrid) 45 REAL zqla(ngrid, klev)45 REAL zqla(ngrid,nlay) 46 46 REAL zmax(ngrid) 47 47 … … 49 49 ! -------- 50 50 51 REAL entr(ngrid, klev)52 REAL detr(ngrid, klev)53 REAL fm(ngrid, klev+1)51 REAL entr(ngrid,nlay) 52 REAL detr(ngrid,nlay) 53 REAL fm(ngrid,nlay+1) 54 54 55 55 ! local: … … 124 124 !------------------------------------------------------------------------------ 125 125 126 DO l=1, klev126 DO l=1,nlay 127 127 entr(:,l) = f(:) * (entr_star(:,l) + alim_star(:,l)) 128 128 detr(:,l) = f(:) * detr_star(:,l) … … 133 133 !------------------------------------------------------------------------------ 134 134 135 DO l=1, klev135 DO l=1,nlay 136 136 DO ig=1,ngrid 137 137 IF (l.lt.lmax(ig) .and. l.ge.lmin(ig)) THEN … … 152 152 !============================================================================== 153 153 154 DO l=1, klev154 DO l=1,nlay 155 155 156 156 !------------------------------------------------------------------------------ … … 186 186 ! Test sur fraca constante ou croissante au-dessus de lalim 187 187 !------------------------------------------------------------------------------ 188 188 189 ! AB : Do we have to decree that? If so, set iflag_thermals_optflux to 0 189 190 IF (iflag_thermals_optflux==0) THEN … … 205 206 ! Test sur flux de masse constant ou decroissant au-dessus de lalim 206 207 !------------------------------------------------------------------------------ 208 207 209 ! AB : Do we have to decree that? If so, set iflag_thermals_optflux to 0 208 210 IF (iflag_thermals_optflux==0) THEN … … 544 546 545 547 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 546 ! AB : temporary test added to check the equation df/dz = e - d validity547 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 548 ! DO l=1, klev548 ! AB : temporary test added to check the validity of eq. df/dz = e - d 549 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 550 ! DO l=1,nlay 549 551 ! DO ig=1,ngrid 550 552 ! test = abs(fm(ig,l) + entr(ig,l) - detr(ig,l) - fm(ig,l+1))
Note: See TracChangeset
for help on using the changeset viewer.