- Timestamp:
- May 13, 2019, 7:50:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cv3_routines.F90
r3496 r3500 2962 2962 2963 2963 IF (cvflag_ice) THEN !!jygprl 2964 DO il = 1, ncum !!jygprl 2965 IF (i<=inb(il) .AND. lwork(il)) THEN !!jygprl 2966 frac(il, i) = (frac_a(il,i)*wdtrainA(il,i)+frac_s(il,i)*(wdtrainS(il,i)+wdtrainM(il,i))) / & !!jygprl 2967 max(wdtrainA(il,i)+wdtrainS(il,i)+wdtrainM(il,i),smallestreal) !!jygprl 2968 fraci(il, i) = frac(il, i) !!jygprl 2969 END IF !!jygprl 2970 END DO !!jygprl 2964 IF (cvflag_prec_eject) THEN 2965 DO il = 1, ncum !!jygprl 2966 IF (i<=inb(il) .AND. lwork(il)) THEN !!jygprl 2967 frac(il, i) = (frac_a(il,i)*wdtrainA(il,i)+frac_s(il,i)*(wdtrainS(il,i)+wdtrainM(il,i))) / & !!jygprl 2968 max(wdtrainA(il,i)+wdtrainS(il,i)+wdtrainM(il,i),smallestreal) !!jygprl 2969 fraci(il, i) = frac(il, i) !!jygprl 2970 END IF !!jygprl 2971 END DO !!jygprl 2972 ELSE ! (cvflag_prec_eject) 2973 DO il = 1, ncum !!jygprl 2974 IF (i<=inb(il) .AND. lwork(il)) THEN !!jygprl 2975 frac(il, inb(il)) = 1. - (t(il,inb(il))-243.15)/(263.15-243.15) 2976 frac(il, inb(il)) = min(max(frac(il,inb(il)),0.), 1.) 2977 ! Ice fraction computed again here as a function of the temperature seen by unsaturated downdraughts 2978 ! (i.e. the cold pool temperature) for compatibility with earlier versions. 2979 fraci(il, i) = 1. - (t(il,i)-243.15)/(263.15-243.15) 2980 fraci(il, i) = min(max(fraci(il,i),0.0), 1.0) 2981 END IF !!jygprl 2982 END DO !!jygprl 2983 ENDIF ! (cvflag_prec_eject) 2971 2984 END IF !!jygprl 2972 2985
Note: See TracChangeset
for help on using the changeset viewer.