[1989] | 1 | !*************************************************************************** |
---|
| 2 | SUBROUTINE RRTM_CMBGB4 |
---|
| 3 | !*************************************************************************** |
---|
| 4 | |
---|
| 5 | ! BAND 4: 630-700 cm-1 (low - H2O,CO2; high - O3,CO2) |
---|
| 6 | !*************************************************************************** |
---|
| 7 | |
---|
| 8 | ! Parameters |
---|
| 9 | USE PARKIND1 ,ONLY : JPIM ,JPRB |
---|
| 10 | USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
---|
| 11 | |
---|
| 12 | USE YOERRTO4 , ONLY : KAO ,KBO ,SELFREFO ,FRACREFAO ,FRACREFBO |
---|
| 13 | USE YOERRTA4 , ONLY : KA ,KB ,SELFREF ,FRACREFA ,FRACREFB |
---|
| 14 | USE YOERRTRWT, ONLY : FREFA ,FREFB ,FREFADF ,FREFBDF ,RWGT |
---|
| 15 | USE YOERRTFTR, ONLY : NGC ,NGS ,NGN |
---|
| 16 | |
---|
| 17 | IMPLICIT NONE |
---|
| 18 | |
---|
| 19 | INTEGER(KIND=JPIM) :: IGC, IPR, IPRSM, JN, JP, JT |
---|
| 20 | |
---|
| 21 | REAL(KIND=JPRB) :: Z_SUMF, Z_SUMK |
---|
| 22 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
| 23 | |
---|
| 24 | IF (LHOOK) CALL DR_HOOK('RRTM_CMBGB4',0,ZHOOK_HANDLE) |
---|
| 25 | DO JN = 1,9 |
---|
| 26 | DO JT = 1,5 |
---|
| 27 | DO JP = 1,13 |
---|
| 28 | IPRSM = 0 |
---|
| 29 | DO IGC = 1,NGC(4) |
---|
| 30 | Z_SUMK = 0.0_JPRB |
---|
| 31 | DO IPR = 1, NGN(NGS(3)+IGC) |
---|
| 32 | IPRSM = IPRSM + 1 |
---|
| 33 | |
---|
| 34 | Z_SUMK = Z_SUMK + KAO(JN,JT,JP,IPRSM)*RWGT(IPRSM+48) |
---|
| 35 | ENDDO |
---|
| 36 | |
---|
| 37 | KA(JN,JT,JP,IGC) = Z_SUMK |
---|
| 38 | ENDDO |
---|
| 39 | ENDDO |
---|
| 40 | ENDDO |
---|
| 41 | ENDDO |
---|
| 42 | DO JN = 1,6 |
---|
| 43 | DO JT = 1,5 |
---|
| 44 | DO JP = 13,59 |
---|
| 45 | IPRSM = 0 |
---|
| 46 | DO IGC = 1,NGC(4) |
---|
| 47 | Z_SUMK = 0.0_JPRB |
---|
| 48 | DO IPR = 1, NGN(NGS(3)+IGC) |
---|
| 49 | IPRSM = IPRSM + 1 |
---|
| 50 | |
---|
| 51 | Z_SUMK = Z_SUMK + KBO(JN,JT,JP,IPRSM)*RWGT(IPRSM+48) |
---|
| 52 | ENDDO |
---|
| 53 | |
---|
| 54 | KB(JN,JT,JP,IGC) = Z_SUMK |
---|
| 55 | ENDDO |
---|
| 56 | ENDDO |
---|
| 57 | ENDDO |
---|
| 58 | ENDDO |
---|
| 59 | |
---|
| 60 | DO JT = 1,10 |
---|
| 61 | IPRSM = 0 |
---|
| 62 | DO IGC = 1,NGC(4) |
---|
| 63 | Z_SUMK = 0.0_JPRB |
---|
| 64 | DO IPR = 1, NGN(NGS(3)+IGC) |
---|
| 65 | IPRSM = IPRSM + 1 |
---|
| 66 | |
---|
| 67 | Z_SUMK = Z_SUMK + SELFREFO(JT,IPRSM)*RWGT(IPRSM+48) |
---|
| 68 | ENDDO |
---|
| 69 | |
---|
| 70 | SELFREF(JT,IGC) = Z_SUMK |
---|
| 71 | ENDDO |
---|
| 72 | ENDDO |
---|
| 73 | |
---|
| 74 | DO JP = 1,9 |
---|
| 75 | IPRSM = 0 |
---|
| 76 | DO IGC = 1,NGC(4) |
---|
| 77 | Z_SUMF = 0.0_JPRB |
---|
| 78 | DO IPR = 1, NGN(NGS(3)+IGC) |
---|
| 79 | IPRSM = IPRSM + 1 |
---|
| 80 | |
---|
| 81 | Z_SUMF = Z_SUMF + FRACREFAO(IPRSM,JP) |
---|
| 82 | ENDDO |
---|
| 83 | |
---|
| 84 | FRACREFA(IGC,JP) = Z_SUMF |
---|
| 85 | ENDDO |
---|
| 86 | ENDDO |
---|
| 87 | |
---|
| 88 | DO JP = 1,6 |
---|
| 89 | IPRSM = 0 |
---|
| 90 | DO IGC = 1,NGC(4) |
---|
| 91 | Z_SUMF = 0.0_JPRB |
---|
| 92 | DO IPR = 1, NGN(NGS(3)+IGC) |
---|
| 93 | IPRSM = IPRSM + 1 |
---|
| 94 | |
---|
| 95 | Z_SUMF = Z_SUMF + FRACREFBO(IPRSM,JP) |
---|
| 96 | ENDDO |
---|
| 97 | |
---|
| 98 | FRACREFB(IGC,JP) = Z_SUMF |
---|
| 99 | ENDDO |
---|
| 100 | ENDDO |
---|
| 101 | |
---|
| 102 | DO JP = 1,9 |
---|
| 103 | DO IGC = 1,NGC(4) |
---|
| 104 | |
---|
| 105 | FREFA(NGS(3)+IGC,JP) = FRACREFA(IGC,JP) |
---|
| 106 | ENDDO |
---|
| 107 | ENDDO |
---|
| 108 | DO JP = 1,8 |
---|
| 109 | DO IGC = 1,NGC(4) |
---|
| 110 | |
---|
| 111 | FREFADF(NGS(3)+IGC,JP) = FRACREFA(IGC,JP+1) -FRACREFA(IGC,JP) |
---|
| 112 | ENDDO |
---|
| 113 | ENDDO |
---|
| 114 | DO JP = 1,6 |
---|
| 115 | DO IGC = 1,NGC(4) |
---|
| 116 | |
---|
| 117 | FREFB(NGS(3)+IGC,JP) = FRACREFB(IGC,JP) |
---|
| 118 | ENDDO |
---|
| 119 | ENDDO |
---|
| 120 | DO JP = 1,5 |
---|
| 121 | DO IGC = 1,NGC(4) |
---|
| 122 | |
---|
| 123 | FREFBDF(NGS(3)+IGC,JP) = FRACREFB(IGC,JP+1) -FRACREFB(IGC,JP) |
---|
| 124 | ENDDO |
---|
| 125 | ENDDO |
---|
| 126 | |
---|
| 127 | IF (LHOOK) CALL DR_HOOK('RRTM_CMBGB4',1,ZHOOK_HANDLE) |
---|
| 128 | END SUBROUTINE RRTM_CMBGB4 |
---|