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