Changeset 4843 for LMDZ6/trunk/libf/phylmd/lmdz_thermcell_env.F90
- Timestamp:
- Mar 4, 2024, 6:58:03 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_thermcell_env.F90
r4590 r4843 3 3 4 4 SUBROUTINE thermcell_env(ngrid,nlay,po,pt,pu,pv,pplay, & 5 & pplev,zo,zh,zl,ztv,zthl,zu,zv,zpspsk,pqsat,l ev_out)5 & pplev,zo,zh,zl,ztv,zthl,zu,zv,zpspsk,pqsat,lcong,lintercong,lev_out) 6 6 7 7 !-------------------------------------------------------------- … … 22 22 real,intent(out), dimension(ngrid,nlay) :: zo,zl,zh,ztv,zthl 23 23 real,intent(out), dimension(ngrid,nlay) :: zpspsk,zu,zv,pqsat 24 24 real, intent(out), dimension(ngrid) :: lintercong 25 integer, intent(out), dimension(ngrid) :: lcong 25 26 ! Local 26 27 … … 78 79 enddo 79 80 enddo 81 !CR: Calcul du niveau de congelation 82 do ig=1,ngrid 83 lcong(ig)=1 84 enddo 85 do ig=1,ngrid 86 do ll=1,nlay-1 87 if ((zh(ig,ll).gt.273.15).and.(zh(ig,ll+1).le.273.15)) then 88 lcong(ig)=ll+1 89 lintercong(ig)=(ll*(zh(ig,ll+1)-zh(ig,ll)) & 90 & -zh(ig,ll)+273.15)/(zh(ig,ll+1)-zh(ig,ll)) 91 endif 92 enddo 93 enddo 80 94 81 95 RETURN
Note: See TracChangeset
for help on using the changeset viewer.