1 |
|
|
!****************************************************************************** |
2 |
|
71568 |
SUBROUTINE RRTM_TAUMOL11 (KLEV,P_TAU,& |
3 |
|
|
& P_TAUAERL,P_FAC00,P_FAC01,P_FAC10,P_FAC11,K_JP,K_JT,K_JT1,& |
4 |
|
|
& P_COLH2O,K_LAYTROP,P_SELFFAC,P_SELFFRAC,K_INDSELF,PFRAC) |
5 |
|
|
|
6 |
|
|
! BAND 11: 1480-1800 cm-1 (low - H2O; high - H2O) |
7 |
|
|
|
8 |
|
|
! Modifications |
9 |
|
|
! M.Hamrud 01-Oct-2003 CY28 Cleaning |
10 |
|
|
|
11 |
|
|
! D Salmond 2000-05-15 speed-up |
12 |
|
|
! JJMorcrette 2000-05-17 speed-up |
13 |
|
|
|
14 |
|
|
USE PARKIND1 ,ONLY : JPIM ,JPRB |
15 |
|
|
USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
16 |
|
|
|
17 |
|
|
USE PARRRTM , ONLY : JPLAY ,JPBAND ,JPGPT ,NG11 ,NGS10 |
18 |
|
|
USE YOERRTWN , ONLY : NSPA ,NSPB |
19 |
|
|
USE YOERRTA11, ONLY : ABSA ,ABSB ,FRACREFA, FRACREFB,SELFREF |
20 |
|
|
|
21 |
|
|
! Input |
22 |
|
|
!#include "yoeratm.h" |
23 |
|
|
|
24 |
|
|
! REAL TAUAER(JPLAY) |
25 |
|
|
|
26 |
|
|
IMPLICIT NONE |
27 |
|
|
|
28 |
|
|
! Output |
29 |
|
|
INTEGER(KIND=JPIM),INTENT(IN) :: KLEV |
30 |
|
|
REAL(KIND=JPRB) ,INTENT(OUT) :: P_TAU(JPGPT,JPLAY) |
31 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_TAUAERL(JPLAY,JPBAND) |
32 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC00(JPLAY) |
33 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC01(JPLAY) |
34 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC10(JPLAY) |
35 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_FAC11(JPLAY) |
36 |
|
|
INTEGER(KIND=JPIM),INTENT(IN) :: K_JP(JPLAY) |
37 |
|
|
INTEGER(KIND=JPIM),INTENT(IN) :: K_JT(JPLAY) |
38 |
|
|
INTEGER(KIND=JPIM),INTENT(IN) :: K_JT1(JPLAY) |
39 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_COLH2O(JPLAY) |
40 |
|
|
INTEGER(KIND=JPIM),INTENT(IN) :: K_LAYTROP |
41 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_SELFFAC(JPLAY) |
42 |
|
|
REAL(KIND=JPRB) ,INTENT(IN) :: P_SELFFRAC(JPLAY) |
43 |
|
|
INTEGER(KIND=JPIM),INTENT(IN) :: K_INDSELF(JPLAY) |
44 |
|
|
REAL(KIND=JPRB) ,INTENT(OUT) :: PFRAC(JPGPT,JPLAY) |
45 |
|
|
!- from AER |
46 |
|
|
!- from INTFAC |
47 |
|
|
!- from INTIND |
48 |
|
|
!- from PROFDATA |
49 |
|
|
!- from SELF |
50 |
|
|
!- from SP |
51 |
|
|
INTEGER(KIND=JPIM) :: IND0(JPLAY),IND1(JPLAY),INDS(JPLAY) |
52 |
|
|
|
53 |
|
|
INTEGER(KIND=JPIM) :: IG, I_LAY |
54 |
|
|
REAL(KIND=JPRB) :: ZHOOK_HANDLE |
55 |
|
|
|
56 |
|
|
! EQUIVALENCE (TAUAERL(1,11),TAUAER) |
57 |
|
|
|
58 |
|
|
! Compute the optical depth by interpolating in ln(pressure) and |
59 |
|
|
! temperature. Below LAYTROP, the water vapor self-continuum |
60 |
|
|
! is interpolated (in temperature) separately. |
61 |
|
|
|
62 |
✓✗ |
71568 |
IF (LHOOK) CALL DR_HOOK('RRTM_TAUMOL11',0,ZHOOK_HANDLE) |
63 |
✓✓ |
1574496 |
DO I_LAY = 1, K_LAYTROP |
64 |
|
1502928 |
IND0(I_LAY) = ((K_JP(I_LAY)-1)*5+(K_JT(I_LAY)-1))*NSPA(11) + 1 |
65 |
|
1502928 |
IND1(I_LAY) = (K_JP(I_LAY)*5+(K_JT1(I_LAY)-1))*NSPA(11) + 1 |
66 |
|
1574496 |
INDS(I_LAY) = K_INDSELF(I_LAY) |
67 |
|
|
ENDDO |
68 |
|
|
|
69 |
|
|
!-- DS_000515 |
70 |
✓✓ |
644112 |
DO IG = 1, NG11 |
71 |
✓✓ |
12667536 |
DO I_LAY = 1, K_LAYTROP |
72 |
|
|
!-- DS_000515 |
73 |
|
|
P_TAU (NGS10+IG,I_LAY) = P_COLH2O(I_LAY) *& |
74 |
|
|
& (P_FAC00(I_LAY) * ABSA(IND0(I_LAY) ,IG) +& |
75 |
|
|
& P_FAC10(I_LAY) * ABSA(IND0(I_LAY)+1,IG) +& |
76 |
|
|
& P_FAC01(I_LAY) * ABSA(IND1(I_LAY) ,IG) +& |
77 |
|
|
& P_FAC11(I_LAY) * ABSA(IND1(I_LAY)+1,IG) +& |
78 |
|
|
& P_SELFFAC(I_LAY) * (SELFREF(INDS(I_LAY),IG) + & |
79 |
|
|
& P_SELFFRAC(I_LAY) *& |
80 |
|
|
& (SELFREF(INDS(I_LAY)+1,IG) - SELFREF(INDS(I_LAY),IG))))& |
81 |
|
12023424 |
& + P_TAUAERL(I_LAY,11) |
82 |
|
12595968 |
PFRAC(NGS10+IG,I_LAY) = FRACREFA(IG) |
83 |
|
|
ENDDO |
84 |
|
|
ENDDO |
85 |
|
|
|
86 |
✓✓ |
1359792 |
DO I_LAY = K_LAYTROP+1, KLEV |
87 |
|
1288224 |
IND0(I_LAY) = ((K_JP(I_LAY)-13)*5+(K_JT(I_LAY)-1))*NSPB(11) + 1 |
88 |
|
1359792 |
IND1(I_LAY) = ((K_JP(I_LAY)-12)*5+(K_JT1(I_LAY)-1))*NSPB(11) + 1 |
89 |
|
|
ENDDO |
90 |
|
|
|
91 |
|
|
!-- JJM_000517 |
92 |
✓✓ |
644112 |
DO IG = 1, NG11 |
93 |
✓✓ |
10949904 |
DO I_LAY = K_LAYTROP+1, KLEV |
94 |
|
|
!-- JJM_000517 |
95 |
|
|
P_TAU (NGS10+IG,I_LAY) = P_COLH2O(I_LAY) *& |
96 |
|
|
& (P_FAC00(I_LAY) * ABSB(IND0(I_LAY) ,IG) +& |
97 |
|
|
& P_FAC10(I_LAY) * ABSB(IND0(I_LAY)+1,IG) +& |
98 |
|
|
& P_FAC01(I_LAY) * ABSB(IND1(I_LAY) ,IG) +& |
99 |
|
|
& P_FAC11(I_LAY) * ABSB(IND1(I_LAY)+1,IG)) & |
100 |
|
10305792 |
& + P_TAUAERL(I_LAY,11) |
101 |
|
10878336 |
PFRAC(NGS10+IG,I_LAY) = FRACREFB(IG) |
102 |
|
|
ENDDO |
103 |
|
|
ENDDO |
104 |
|
|
|
105 |
✓✗ |
71568 |
IF (LHOOK) CALL DR_HOOK('RRTM_TAUMOL11',1,ZHOOK_HANDLE) |
106 |
|
71568 |
END SUBROUTINE RRTM_TAUMOL11 |