Changeset 2957 for LMDZ5/trunk
- Timestamp:
- Jul 18, 2017, 12:38:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/cloudth_mod.F90
r2945 r2957 845 845 REAL zqsatenv(ngrid,klev) 846 846 847 848 849 850 847 REAL sigma1(ngrid,klev) 851 848 REAL sigma2(ngrid,klev) … … 864 861 REAL rdd,cppd,Lv 865 862 REAL alth,alenv,ath,aenv 866 REAL sth,senv,sigma1s,sigma2s,xth,xenv,exp_xenv1,exp_xenv2,exp_xth1,exp_xth2 863 REAL sth,senv,sigma1s,sigma2s,sigma1s_fraca,sigma1s_ratqs 864 REAL xth,xenv,exp_xenv1,exp_xenv2,exp_xth1,exp_xth2 867 865 REAL xth1,xth2,xenv1,xenv2,deltasth, deltasenv 868 866 REAL IntJ,IntI1,IntI2,IntI3,IntJ_CF,IntI1_CF,IntI3_CF,coeffqlenv,coeffqlth … … 874 872 REAL,SAVE :: vert_alpha, vert_alpha_th 875 873 !$OMP THREADPRIVATE(vert_alpha, vert_alpha_th) 874 REAL,SAVE :: sigma1s_factor=1.1 875 REAL,SAVE :: sigma1s_power=0.6 876 !$OMP THREADPRIVATE(sigma1s_factor,sigma1s_power) 877 INTEGER, SAVE :: iflag_cloudth_vert_noratqs=0 878 !$OMP THREADPRIVATE(iflag_cloudth_vert_noratqs) 879 876 880 LOGICAL, SAVE :: firstcall = .TRUE. 877 881 !$OMP THREADPRIVATE(firstcall) … … 917 921 CALL getin_p('cloudth_vert_alpha_th',vert_alpha_th) 918 922 WRITE(*,*) 'cloudth_vert_alpha_th = ', vert_alpha_th 923 ! Factor used in the calculation of sigma1s 924 CALL getin_p('cloudth_sigma1s_factor',sigma1s_factor) 925 WRITE(*,*) 'cloudth_sigma1s_factor = ', sigma1s_factor 926 ! Power used in the calculation of sigma1s 927 CALL getin_p('cloudth_sigma1s_power',sigma1s_power) 928 WRITE(*,*) 'cloudth_sigma1s_power = ', sigma1s_power 929 ! Remove the dependency to ratqs from the variance of the vertical PDF 930 CALL getin_p('iflag_cloudth_vert_noratqs',iflag_cloudth_vert_noratqs) 931 WRITE(*,*) 'iflag_cloudth_vert_noratqs = ', iflag_cloudth_vert_noratqs 932 919 933 firstcall=.FALSE. 920 934 ENDIF … … 969 983 !------------------------------------------------------------------------------ 970 984 971 sigma1s=(1.1**0.5)*(fraca(ind1,ind2)**0.6)/(1-fraca(ind1,ind2))*((sth-senv)**2)**0.5+ratqs(ind1,ind2)*po(ind1) 985 sigma1s_fraca = (sigma1s_factor**0.5)*(fraca(ind1,ind2)**sigma1s_power) / & 986 & (1-fraca(ind1,ind2))*((sth-senv)**2)**0.5 987 ! sigma1s_fraca = (1.1**0.5)*(fraca(ind1,ind2)**0.6)/(1-fraca(ind1,ind2))*((sth-senv)**2)**0.5 988 sigma1s_ratqs = ratqs(ind1,ind2)*po(ind1) 989 sigma1s = sigma1s_fraca + sigma1s_ratqs 972 990 sigma2s=(0.09*(((sth-senv)**2)**0.5)/((fraca(ind1,ind2)+0.02)**0.5))+0.002*zqta(ind1,ind2) 973 991 ! tests … … 1034 1052 deltasth=ath*vert_alpha_th*sigma2s 1035 1053 ELSE IF (iflag_cloudth_vert == 4) THEN 1036 deltasenv=vert_alpha*sigma1s 1037 deltasth=vert_alpha_th*sigma2s 1054 IF (iflag_cloudth_vert_noratqs == 1) THEN 1055 deltasenv=vert_alpha*sigma1s_fraca 1056 deltasth=vert_alpha_th*sigma2s 1057 ELSE 1058 deltasenv=vert_alpha*sigma1s 1059 deltasth=vert_alpha_th*sigma2s 1060 ENDIF 1038 1061 ENDIF 1039 1062
Note: See TracChangeset
for help on using the changeset viewer.