Changeset 992
- Timestamp:
- Aug 7, 2008, 6:43:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/cv3_routines.F
r991 r992 3006 3006 csum(il)=0.0 3007 3007 dsum(il)=0.0 3008 enddo 3009 3008 esum(il)=0.0 3009 fsum(il)=0.0 3010 gsum(il)=0.0 3011 hsum(il)=0.0 3012 enddo 3013 c 3014 do i=1,nl 3015 do il=1,ncum 3016 th_wake(il,i)=t_wake(il,i)*(1000.0/p(il,i))**rdcp 3017 enddo 3018 enddo 3019 c 3010 3020 do i=1,nl 3011 3021 do il=1,ncum 3012 3022 if (i.le.(icb(il)-1) .and. iflag(il) .le. 1) then 3013 asum(il)=asum(il)+ft(il,i)*(ph(il,i)-ph(il,i+1)) 3014 bsum(il)=bsum(il)+fr(il,i)*(lv(il,i)+(cl-cpd)*(t(il,i)-t(il,1))) 3023 cjyg Saturated part : use T profile 3024 asum(il)=asum(il)+(ft(il,i)-ftd(il,i))*(ph(il,i)-ph(il,i+1)) 3025 bsum(il)=bsum(il)+(fr(il,i)-fqd(il,i)) 3026 : *(lv(il,i)+(cl-cpd)*(t(il,i)-t(il,1))) 3015 3027 : *(ph(il,i)-ph(il,i+1)) 3016 3028 csum(il)=csum(il)+(lv(il,i)+(cl-cpd)*(t(il,i)-t(il,1))) 3017 3029 : *(ph(il,i)-ph(il,i+1)) 3018 3030 dsum(il)=dsum(il)+t(il,i)*(ph(il,i)-ph(il,i+1))/th(il,i) 3031 cjyg Unsaturated part : use T_wake profile 3032 esum(il)=esum(il)+ftd(il,i)*(ph(il,i)-ph(il,i+1)) 3033 fsum(il)=fsum(il)+fqd(il,i) 3034 : *(lv(il,i)+(cl-cpd)*(t_wake(il,i)-t_wake(il,1))) 3035 : *(ph(il,i)-ph(il,i+1)) 3036 gsum(il)=gsum(il)+(lv(il,i)+(cl-cpd)*(t_wake(il,i)-t_wake(il,1))) 3037 : *(ph(il,i)-ph(il,i+1)) 3038 hsum(il)=hsum(il)+t_wake(il,i) 3039 ; *(ph(il,i)-ph(il,i+1))/th_wake(il,i) 3019 3040 endif 3020 3041 enddo … … 3025 3046 do il=1,ncum 3026 3047 if (i.le.(icb(il)-1) .and. iflag(il) .le. 1) then 3027 ft(il,i)=asum(il)*t(il,i)/(th(il,i)*dsum(il)) 3028 fr(il,i)=bsum(il)/csum(il) 3048 ftd(il,i)=esum(il)*t_wake(il,i)/(th_wake(il,i)*hsum(il)) 3049 fqd(il,i)=fsum(il)/gsum(il) 3050 ft(il,i)=ftd(il,i)+asum(il)*t(il,i)/(th(il,i)*dsum(il)) 3051 fr(il,i)=fqd(il,i)+bsum(il)/csum(il) 3029 3052 endif 3030 3053 enddo 3031 3054 enddo 3032 3033 3055 c 3034 3056 c *** reset counter and return ***
Note: See TracChangeset
for help on using the changeset viewer.