Changeset 127 in lmdz_wrf
- Timestamp:
- Jul 28, 2014, 5:42:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LMDZ_WRFmeas/WRFV3/lmdz/thermcell_main.F90
r126 r127 914 914 do ig=1,ngrid 915 915 if (ok_lcl(ig)) then 916 if ((pplay(ig,l) .ge. pcon(ig)) .and. (pplay(ig,l+1) .le. pcon(ig))) then 916 ! if ((pplay(ig,l) .ge. pcon(ig)) .and. (pplay(ig,l+1) .le. pcon(ig))) then 917 ! L. Fita, LMD July 2014. Adding avoiding divisons by zero... 918 if ((pplay(ig,l) .ge. pcon(ig)) .and. (pplay(ig,l+1) .le. pcon(ig)) .and. & 919 (pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig))) .ne. 0.) then 917 920 klcl(ig)=l 918 921 interp(ig)=(pcon(ig)-pplay(ig,klcl(ig)))/(pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig))) … … 922 925 enddo 923 926 lfname='thermcell_main calculation of LCL' 924 lvarname = 'in erp'927 lvarname = 'interp' 925 928 CALL check_var3D(lfname, lvarname, interp, ngrid, nlay, largest, .FALSE.) 926 929 lvarname = 'klcl' … … 930 933 lvarname = 'pplay' 931 934 CALL check_var3D(lfname, lvarname, pplay, ngrid, nlay, largest, .FALSE.) 935 lvarname = '1/pplay' 936 CALL check_var3D(lfname, lvarname, 1./pplay, ngrid, nlay, largest, .FALSE.) 937 932 938 933 939 !------------Hauteur des thermiques
Note: See TracChangeset
for help on using the changeset viewer.