[3908] | 1 | !*************************************************************************** |
---|
| 2 | SUBROUTINE RRTM_CMBGB12 |
---|
| 3 | !*************************************************************************** |
---|
| 4 | |
---|
| 5 | ! BAND 12: 1800-2080 cm-1 (low - H2O,CO2; high - nothing) |
---|
| 6 | ! ABozzo updated to rrtmg v4.85 |
---|
| 7 | !*************************************************************************** |
---|
| 8 | |
---|
| 9 | ! Parameters |
---|
| 10 | USE PARKIND1 ,ONLY : JPIM ,JPRB |
---|
| 11 | USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
---|
| 12 | |
---|
| 13 | USE YOERRTO12, ONLY : KAO ,SELFREFO, FORREFO ,FRACREFAO |
---|
| 14 | USE YOERRTA12, ONLY : KA ,SELFREF, FORREF ,FRACREFA |
---|
| 15 | USE YOERRTRWT, ONLY : RWGT |
---|
| 16 | USE YOERRTFTR, ONLY : NGC ,NGS ,NGN |
---|
| 17 | |
---|
| 18 | IMPLICIT NONE |
---|
| 19 | |
---|
| 20 | INTEGER(KIND=JPIM) :: IGC, IPR, IPRSM, JN, JP, JT |
---|
| 21 | |
---|
| 22 | REAL(KIND=JPRB) :: Z_SUMF, Z_SUMK |
---|
| 23 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
| 24 | |
---|
| 25 | IF (LHOOK) CALL DR_HOOK('RRTM_CMBGB12',0,ZHOOK_HANDLE) |
---|
| 26 | DO JN = 1,9 |
---|
| 27 | DO JT = 1,5 |
---|
| 28 | DO JP = 1,13 |
---|
| 29 | IPRSM = 0 |
---|
| 30 | DO IGC = 1,NGC(12) |
---|
| 31 | Z_SUMK = 0.0_JPRB |
---|
| 32 | DO IPR = 1, NGN(NGS(11)+IGC) |
---|
| 33 | IPRSM = IPRSM + 1 |
---|
| 34 | |
---|
| 35 | Z_SUMK = Z_SUMK + KAO(JN,JT,JP,IPRSM)*RWGT(IPRSM+176) |
---|
| 36 | ENDDO |
---|
| 37 | |
---|
| 38 | KA(JN,JT,JP,IGC) = Z_SUMK |
---|
| 39 | ENDDO |
---|
| 40 | ENDDO |
---|
| 41 | ENDDO |
---|
| 42 | ENDDO |
---|
| 43 | |
---|
| 44 | DO JT = 1,10 |
---|
| 45 | IPRSM = 0 |
---|
| 46 | DO IGC = 1,NGC(12) |
---|
| 47 | Z_SUMK = 0.0_JPRB |
---|
| 48 | DO IPR = 1, NGN(NGS(11)+IGC) |
---|
| 49 | IPRSM = IPRSM + 1 |
---|
| 50 | |
---|
| 51 | Z_SUMK = Z_SUMK + SELFREFO(JT,IPRSM)*RWGT(IPRSM+176) |
---|
| 52 | ENDDO |
---|
| 53 | |
---|
| 54 | SELFREF(JT,IGC) = Z_SUMK |
---|
| 55 | ENDDO |
---|
| 56 | ENDDO |
---|
| 57 | |
---|
| 58 | DO JT = 1,4 |
---|
| 59 | IPRSM = 0 |
---|
| 60 | DO IGC = 1,NGC(12) |
---|
| 61 | Z_SUMK = 0.0_JPRB |
---|
| 62 | DO IPR = 1, NGN(NGS(11)+IGC) |
---|
| 63 | IPRSM = IPRSM + 1 |
---|
| 64 | Z_SUMK = Z_SUMK + FORREFO(JT,IPRSM)*RWGT(IPRSM+176) |
---|
| 65 | ENDDO |
---|
| 66 | FORREF(JT,IGC) = Z_SUMK |
---|
| 67 | ENDDO |
---|
| 68 | ENDDO |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | DO JP = 1,9 |
---|
| 72 | IPRSM = 0 |
---|
| 73 | DO IGC = 1,NGC(12) |
---|
| 74 | Z_SUMF = 0.0_JPRB |
---|
| 75 | DO IPR = 1, NGN(NGS(11)+IGC) |
---|
| 76 | IPRSM = IPRSM + 1 |
---|
| 77 | |
---|
| 78 | Z_SUMF = Z_SUMF + FRACREFAO(IPRSM,JP) |
---|
| 79 | ENDDO |
---|
| 80 | |
---|
| 81 | FRACREFA(IGC,JP) = Z_SUMF |
---|
| 82 | ENDDO |
---|
| 83 | ENDDO |
---|
| 84 | |
---|
| 85 | IF (LHOOK) CALL DR_HOOK('RRTM_CMBGB12',1,ZHOOK_HANDLE) |
---|
| 86 | END SUBROUTINE RRTM_CMBGB12 |
---|