source: LMDZ6/trunk/libf/phylmd/Dust/aeropt_spl.f90 @ 5327

Last change on this file since 5327 was 5292, checked in by abarral, 3 weeks ago

Move academic.h chem.h chem_spla.h to module

File size: 10.5 KB
Line 
1SUBROUTINE aeropt_spl(zdz, tr_seri, RHcl, &
2        id_prec, id_fine, id_coss, id_codu, id_scdu, &
3        ok_chimeredust, &
4        ztaue550,ztaue670,ztaue865, &
5        taue550_tr2,taue670_tr2,taue865_tr2, &
6        taue550_ss,taue670_ss,taue865_ss, &
7        taue550_dust,taue670_dust,taue865_dust, &
8        taue550_dustsco,taue670_dustsco,taue865_dustsco)
9  !
10USE chem_mod_h
11    USE dimphy
12  USE infotrac
13  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
14USE yomcst_mod_h
15IMPLICIT none
16  !
17
18  !INCLUDE "dimphy.h"
19
20  !
21  ! Arguments:
22  !
23  !======================== INPUT ==================================
24  REAL :: zdz(klon,klev)
25  REAL :: tr_seri(klon,klev,nbtr) ! masse of tracer
26  REAL :: RHcl(klon,klev)     ! humidite relativen ciel clair
27  INTEGER :: id_prec, id_fine, id_coss, id_codu, id_scdu
28  LOGICAL :: ok_chimeredust
29  !============================== OUTPUT =================================
30  REAL :: ztaue550(klon) ! epaisseur optique aerosol 550 nm
31  REAL :: ztaue670(klon) ! epaisseur optique aerosol 670 nm
32  REAL :: ztaue865(klon) ! epaisseur optique aerosol 865 nm
33  REAL :: taue550_tr2(klon) ! epaisseur optique aerosol 550 nm, diagnostic
34  REAL :: taue670_tr2(klon) ! epaisseur optique aerosol 670 nm, diagnostic
35  REAL :: taue865_tr2(klon) ! epaisseur optique aerosol 865 nm, diagnostic
36  REAL :: taue550_ss(klon) ! epaisseur optique aerosol 550 nm, diagnostic
37  REAL :: taue670_ss(klon) ! epaisseur optique aerosol 670 nm, diagnostic
38  REAL :: taue865_ss(klon) ! epaisseur optique aerosol 865 nm, diagnostic
39  REAL :: taue550_dust(klon) ! epaisseur optique aerosol 550 nm, diagnostic
40  REAL :: taue670_dust(klon) ! epaisseur optique aerosol 670 nm, diagnostic
41  REAL :: taue865_dust(klon) ! epaisseur optique aerosol 865 nm, diagnostic
42  REAL :: taue550_dustsco(klon) ! epaisseur optique aerosol 550 nm, diagnostic
43  REAL :: taue670_dustsco(klon) ! epaisseur optique aerosol 670 nm, diagnostic
44  REAL :: taue865_dustsco(klon) ! epaisseur optique aerosol 865 nm, diagnostic
45  !===================== LOCAL VARIABLES ===========================
46  INTEGER :: nb_lambda,nbre_RH
47  PARAMETER (nb_lambda=3,nbre_RH=12)
48  INTEGER :: i, k, RH_num
49  REAL :: rh, RH_MAX, DELTA, RH_tab(nbre_RH)
50  PARAMETER (RH_MAX=95.)
51  INTEGER :: rh_int
52  PARAMETER (rh_int=12)
53  REAL :: auxreal
54   ! REAL ss_a(nb_lambda,int,nbtr-1)
55   ! DATA ss_a/72*1./
56  REAL :: ss_dust(nb_lambda), ss_acc550(rh_int), alpha_acc
57  REAL :: ss_dustsco(nb_lambda)
58  REAL :: ss_acc670(rh_int), ss_acc865(rh_int)
59  REAL :: ss_ssalt550(rh_int)
60  REAL :: ss_ssalt670(rh_int), ss_ssalt865(rh_int)
61  REAL :: burden_ss(klon)
62  DATA ss_acc550 /3.135,3.135,3.135, 3.135, 4.260, 4.807, &
63        5.546,6.651,8.641,10.335,13.534,22.979/
64  DATA ss_acc670 /2.220,2.220,2.220, 2.220, 3.048, 3.460, &
65        4.023,4.873,6.426, 7.761,10.322,18.079/
66  DATA ss_acc865 /1.329,1.329,1.329, 1.329, 1.855, 2.124, &
67        2.494,3.060,4.114, 5.033, 6.831,12.457/
68  !old4tracers      DATA ss_dust/0.564, 0.614, 0.700/ !for bin 0.5-10um
69   ! DATA ss_dust/0.553117, 0.610185, 0.7053460 / !for bin 0.5-3um radius
70   ! DATA ss_dustsco/0.1014, 0.102156, 0.1035538 / !for bin 3-15um radius
71  !20140902      DATA ss_dust/0.5345737, 0.5878828, 0.6772957/ !for bin 0.5-3um radius
72  !20140902      DATA ss_dustsco/0.1009634, 0.1018700, 0.1031178/ !for bin 3-15um radius
73  !3days      DATA ss_dust/0.4564216, 0.4906738, 0.5476248/ !for bin 0.5-3um radius
74  !3days      DATA ss_dustsco/0.1015022, 0.1024051, 0.1036622/ !for bin 3-15um radius
75  !JE20140911      DATA ss_dust/0.5167768,0.5684330,0.6531643/ !for bin 0.5-3um radius
76  !JE20140911      DATA ss_dustsco/0.1003391,0.1012288,0.1024651/ !for bin 3-15um radius
77  !JE20140915      DATA ss_dust/0.3188754,0.3430106,0.3829019/ !for bin 0.5-5um radius
78  !JE20140915      DATA ss_dustsco/8.0582686E-02,8.1255026E-02,8.1861295E-02/ !for bin 5-15um radius
79
80   ! DATA ss_dust/0.5167768,0.5684330,0.6531643/ !for bin 0.5-3um radius
81   ! DATA ss_dustsco/0.1003391,0.1012288,0.1024651/ !for bin 3-15um radius
82
83
84  DATA ss_ssalt550/0.182,0.182,0.182,0.182,0.366,0.430, &
85        0.484,0.551,0.648,0.724,0.847,1.218/ !for bin 0.5-20 um, fit_v2
86  DATA ss_ssalt670/0.193,0.193,0.193,0.193,0.377,0.431, &
87        0.496,0.587,0.693,0.784,0.925,1.257/ !for bin 0.5-20 um
88  DATA ss_ssalt865/0.188,0.188,0.188,0.188,0.384,0.443, &
89        0.502,0.580,0.699,0.799,0.979,1.404/ !for bin 0.5-20 um
90
91  DATA RH_tab/0.,10.,20.,30.,40.,50.,60.,70.,80.,85.,90.,95./
92  !
93  IF (ok_chimeredust) THEN
94  !JE20150212<< : changes in ustar in dustmod changes emission distribution
95   ! ss_dust=(/0.5167768,0.5684330,0.6531643/)
96   ! ss_dustsco=(/0.1003391,0.1012288,0.1024651/)
97  ! JE20150618: Change in dustmodule, div3 is now =6: change distributions
98  ! div3=3      ss_dust   =(/0.4670522 , 0.5077308 , 0.5745184/)
99  ! div3=3      ss_dustsco=(/0.099858  , 0.1007395 , 0.1019673/)
100  ss_dust   =(/0.4851232 , 0.5292494 , 0.5935509/)
101  ss_dustsco=(/0.1001981 , 0.1011043 , 0.1023113/)
102
103  !JE20150212>>
104
105  ELSE
106  ss_dust=(/0.564, 0.614, 0.700/)
107  ss_dustsco=(/0.,0.,0./)
108  ENDIF
109
110  DO i=1, klon
111    ztaue550(i)=0.0
112    ztaue670(i)=0.0
113    ztaue865(i)=0.0
114    taue550_tr2(i)=0.0
115    taue670_tr2(i)=0.0
116    taue865_tr2(i)=0.0
117    taue550_ss(i)=0.0
118    taue670_ss(i)=0.0
119    taue865_ss(i)=0.0
120    taue550_dust(i)=0.0
121    taue670_dust(i)=0.0
122    taue865_dust(i)=0.0
123    taue550_dustsco(i)=0.0
124    taue670_dustsco(i)=0.0
125    taue865_dustsco(i)=0.0
126    burden_ss(i)=0.0
127  ENDDO
128
129  DO k=1, klev
130  DO i=1, klon
131  !
132  rh=MIN(RHcl(i,k)*100.,RH_MAX)
133  RH_num = INT( rh/10. + 1.)
134  IF (rh.gt.85.) RH_num=10
135  IF (rh.gt.90.) RH_num=11
136   ! IF (rh.gt.40.) THEN
137   !     RH_num=5   ! Added by NHL temporarily
138   !     print *,'TEMPORARY CASE'
139   ! ENDIF
140  DELTA=(rh-RH_tab(RH_num))/(RH_tab(RH_num+1)-RH_tab(RH_num))
141
142
143  !*******************************************************************
144                    ! AOD at 550 NM
145  !*******************************************************************
146    alpha_acc=ss_acc550(RH_num) + DELTA*(ss_acc550(RH_num+1)- &
147          ss_acc550(RH_num))              !--m2/g
148  !nhl_test TOTAL AOD
149   auxreal=0.
150  IF(id_fine>0) auxreal=auxreal+alpha_acc*tr_seri(i,k,id_fine)
151  IF(id_coss>0) auxreal=auxreal+ss_ssalt550(RH_num)* &
152        tr_seri(i,k,id_coss)
153  IF(id_codu>0) auxreal=auxreal+ss_dust(1)*tr_seri(i,k,id_codu)
154  IF(id_scdu>0) auxreal=auxreal+ss_dustsco(1)*tr_seri(i,k,id_scdu)
155  ztaue550(i)=ztaue550(i)+auxreal*zdz(i,k)*1.e6
156
157  !JE20150128        ztaue550(i)=ztaue550(i)+(alpha_acc*tr_seri(i,k,id_fine)+
158  ! .                 ss_ssalt550(RH_num)*tr_seri(i,k,id_coss)+
159  ! .                 ss_dust(1)*tr_seri(i,k,id_codu)+
160  ! .              ss_dustsco(1)*tr_seri(i,k,id_scdu)  )*zdz(i,k)*1.e6
161
162  !nhl_test TOTAL AOD IS NOW AOD COARSE MODE ONLY
163  !nhl_test        ztaue550(i)=ztaue550(i)+(
164  !nhl_test     .                 ss_ssalt550(RH_num)*tr_seri(i,k,3)+
165  !nhl_test     .                 ss_dust(1)*tr_seri(i,k,4))*zdz(i,k)*1.e6
166
167    IF(id_fine>0) taue550_tr2(i)=taue550_tr2(i) &
168          + alpha_acc*tr_seri(i,k,id_fine)*zdz(i,k)*1.e6
169    IF(id_coss>0) taue550_ss(i)=taue550_ss(i)+ &
170          ss_ssalt550(RH_num)*tr_seri(i,k,id_coss)* &
171          zdz(i,k)*1.e6
172    IF(id_codu>0) taue550_dust(i)=taue550_dust(i)+ &
173          ss_dust(1)*tr_seri(i,k,id_codu)* &
174          zdz(i,k)*1.e6
175    IF(id_scdu>0) taue550_dustsco(i)=taue550_dustsco(i)+ &
176          ss_dustsco(1)*tr_seri(i,k,id_scdu)* &
177          zdz(i,k)*1.e6
178     ! print *,'taue550_ss = ',SUM(taue550_ss),MINVAL(taue550_ss),
179  ! .                                          MAXVAL(taue550_ss)
180
181  !*******************************************************************
182  !                   AOD at 670 NM
183  !*******************************************************************
184    alpha_acc=ss_acc670(RH_num) + DELTA*(ss_acc670(RH_num+1)- &
185          ss_acc670(RH_num))              !--m2/g
186  auxreal=0.
187  IF(id_fine>0) auxreal=auxreal+alpha_acc*tr_seri(i,k,id_fine)
188  IF(id_coss>0) auxreal=auxreal+ss_ssalt670(RH_num) &
189        *tr_seri(i,k,id_coss)
190  IF(id_codu>0) auxreal=auxreal+ss_dust(2)*tr_seri(i,k,id_codu)
191  IF(id_scdu>0) auxreal=auxreal+ss_dustsco(2)*tr_seri(i,k,id_scdu)
192  ztaue670(i)=ztaue670(i)+auxreal*zdz(i,k)*1.e6
193
194  !JE20150128        ztaue670(i)=ztaue670(i)+(alpha_acc*tr_seri(i,k,id_fine)+
195  ! .                 ss_ssalt670(RH_num)*tr_seri(i,k,id_coss)+
196  ! .                 ss_dust(2)*tr_seri(i,k,id_codu)+
197  ! .               ss_dustsco(2)*tr_seri(i,k,id_scdu))*zdz(i,k)*1.e6
198
199  IF(id_fine>0)  taue670_tr2(i)=taue670_tr2(i)+ &
200        alpha_acc*tr_seri(i,k,id_fine)* &
201        zdz(i,k)*1.e6
202  IF(id_coss>0)  taue670_ss(i)=taue670_ss(i)+ &
203        ss_ssalt670(RH_num)*tr_seri(i,k,id_coss)* &
204        zdz(i,k)*1.e6
205  IF(id_codu>0)  taue670_dust(i)=taue670_dust(i) &
206        +ss_dust(2)*tr_seri(i,k,id_codu)* &
207        zdz(i,k)*1.e6
208  IF(id_scdu>0)  taue670_dustsco(i)=taue670_dustsco(i)+ &
209        ss_dustsco(2)*tr_seri(i,k,id_scdu)* &
210        zdz(i,k)*1.e6
211
212  !*******************************************************************
213                    ! AOD at 865 NM
214  !*******************************************************************
215    alpha_acc=ss_acc865(RH_num) + DELTA*(ss_acc865(RH_num+1)- &
216          ss_acc865(RH_num))              !--m2/g
217    auxreal=0.
218  IF(id_fine>0) auxreal=auxreal+alpha_acc*tr_seri(i,k,id_fine)
219  IF(id_coss>0) auxreal=auxreal &
220        +ss_ssalt865(RH_num)*tr_seri(i,k,id_coss)
221  IF(id_codu>0) auxreal=auxreal+ss_dust(3)*tr_seri(i,k,id_codu)
222  IF(id_scdu>0) auxreal=auxreal+ss_dustsco(3)*tr_seri(i,k,id_scdu)
223    ztaue865(i)=ztaue865(i)+auxreal*zdz(i,k)*1.e6
224  !JE20150128        ztaue865(i)=ztaue865(i)+(alpha_acc*tr_seri(i,k,id_fine)+
225  ! .                 ss_ssalt865(RH_num)*tr_seri(i,k,id_coss)+
226  ! .                 ss_dust(3)*tr_seri(i,k,id_codu)+
227  ! .               ss_dustsco(3)*tr_seri(i,k,id_scdu))*zdz(i,k)*1.e6
228  IF(id_fine>0) taue865_tr2(i)=taue865_tr2(i) &
229        +alpha_acc*tr_seri(i,k,id_fine)* &
230        zdz(i,k)*1.e6
231  IF(id_coss>0) taue865_ss(i)=taue865_ss(i)+ &
232        ss_ssalt865(RH_num)*tr_seri(i,k,id_coss)* &
233        zdz(i,k)*1.e6
234  IF(id_codu>0)  taue865_dust(i)=taue865_dust(i) &
235        +ss_dust(3)*tr_seri(i,k,id_codu)* &
236        zdz(i,k)*1.e6
237  IF(id_scdu>0)  taue865_dustsco(i)=taue865_dustsco(i)+ &
238        ss_dustsco(3)*tr_seri(i,k,id_scdu)* &
239        zdz(i,k)*1.e6
240
241
242  !
243  IF(id_coss>0)  burden_ss(i)=burden_ss(i) &
244        +tr_seri(i,k,id_coss)*1.e6*1.e3*zdz(i,k)
245  ENDDO            !-loop on klev
246  ENDDO            !-loop on klon
247   ! print *,'tr_seri = ',SUM(tr_seri(:,:,3)),MINVAL(tr_seri(:,:,3)),
248  ! .                                          MAXVAL(tr_seri(:,:,3))
249  !  print *,'taue550_ss = ',SUM(taue550_ss),MINVAL(taue550_ss),
250  ! .                                        MAXVAL(taue550_ss)
251  !
252  RETURN
253END SUBROUTINE aeropt_spl
Note: See TracBrowser for help on using the repository browser.