[2089] | 1 | !*************************************************************************** |
---|
| 2 | SUBROUTINE RRTM_CMBGB15 |
---|
| 3 | !*************************************************************************** |
---|
| 4 | |
---|
| 5 | ! BAND 15: 2380-2600 cm-1 (low - N2O,CO2; high - nothing) |
---|
| 6 | !*************************************************************************** |
---|
| 7 | |
---|
| 8 | ! Parameters |
---|
| 9 | #include "tsmbkind.h" |
---|
| 10 | |
---|
| 11 | USE PARRRTM , ONLY : JPBAND ,JPG ,JPXSEC ,JPGPT |
---|
| 12 | |
---|
| 13 | USE YOERRTO15, ONLY : KAO ,SELFREFO ,FRACREFAO |
---|
| 14 | USE YOERRTA15, ONLY : KA ,SELFREF ,FRACREFA & |
---|
| 15 | & , ABSA ,NG15 |
---|
| 16 | USE YOERRTRWT, ONLY : FREFA ,FREFB ,FREFADF ,FREFBDF ,RWGT |
---|
| 17 | USE YOERRTFTR, ONLY : NGC ,NGS ,NGN ,NGB ,NGM , WT |
---|
| 18 | |
---|
| 19 | IMPLICIT NONE |
---|
| 20 | |
---|
| 21 | ! LOCAL INTEGER SCALARS |
---|
| 22 | INTEGER_M :: IGC, IPR, IPRSM, JN, JP, JT |
---|
| 23 | INTEGER_M :: MEQ, NEQ ! To force equivalence, HG, 13-DEC-2003 |
---|
| 24 | |
---|
| 25 | ! LOCAL REAL SCALARS |
---|
| 26 | REAL_B :: SUMF, SUMK |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | DO JN = 1,9 |
---|
| 30 | DO JT = 1,5 |
---|
| 31 | DO JP = 1,13 |
---|
| 32 | IPRSM = 0 |
---|
| 33 | DO IGC = 1,NGC(15) |
---|
| 34 | SUMK = _ZERO_ |
---|
| 35 | DO IPR = 1, NGN(NGS(14)+IGC) |
---|
| 36 | IPRSM = IPRSM + 1 |
---|
| 37 | |
---|
| 38 | SUMK = SUMK + KAO(JN,JT,JP,IPRSM)*RWGT(IPRSM+224) |
---|
| 39 | ENDDO |
---|
| 40 | |
---|
| 41 | KA(JN,JT,JP,IGC) = SUMK |
---|
| 42 | ENDDO |
---|
| 43 | ENDDO |
---|
| 44 | ENDDO |
---|
| 45 | ENDDO |
---|
| 46 | |
---|
| 47 | DO JT = 1,10 |
---|
| 48 | IPRSM = 0 |
---|
| 49 | DO IGC = 1,NGC(15) |
---|
| 50 | SUMK = _ZERO_ |
---|
| 51 | DO IPR = 1, NGN(NGS(14)+IGC) |
---|
| 52 | IPRSM = IPRSM + 1 |
---|
| 53 | |
---|
| 54 | SUMK = SUMK + SELFREFO(JT,IPRSM)*RWGT(IPRSM+224) |
---|
| 55 | ENDDO |
---|
| 56 | |
---|
| 57 | SELFREF(JT,IGC) = SUMK |
---|
| 58 | ENDDO |
---|
| 59 | ENDDO |
---|
| 60 | |
---|
| 61 | DO JP = 1,9 |
---|
| 62 | IPRSM = 0 |
---|
| 63 | DO IGC = 1,NGC(15) |
---|
| 64 | SUMF = _ZERO_ |
---|
| 65 | DO IPR = 1, NGN(NGS(14)+IGC) |
---|
| 66 | IPRSM = IPRSM + 1 |
---|
| 67 | |
---|
| 68 | SUMF = SUMF + FRACREFAO(IPRSM,JP) |
---|
| 69 | ENDDO |
---|
| 70 | |
---|
| 71 | FRACREFA(IGC,JP) = SUMF |
---|
| 72 | ENDDO |
---|
| 73 | ENDDO |
---|
| 74 | |
---|
| 75 | DO JP = 1,9 |
---|
| 76 | DO IGC = 1,NGC(15) |
---|
| 77 | |
---|
| 78 | FREFA(NGS(14)+IGC,JP) = FRACREFA(IGC,JP) |
---|
| 79 | ENDDO |
---|
| 80 | ENDDO |
---|
| 81 | DO JP = 1,8 |
---|
| 82 | DO IGC = 1,NGC(15) |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | FREFADF(NGS(14)+IGC,JP) = FRACREFA(IGC,JP+1) -FRACREFA(IGC,JP) |
---|
| 86 | ENDDO |
---|
| 87 | ENDDO |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | ! +--Force the equivalence: BEGIN (HG, 13-DEC-2003) |
---|
| 91 | ! + ============================ |
---|
| 92 | |
---|
| 93 | ! +--ABSA |
---|
| 94 | ! + ^^^^ |
---|
| 95 | JN = 0 |
---|
| 96 | JT = 1 |
---|
| 97 | JP = 1 |
---|
| 98 | IGC = 1 |
---|
| 99 | DO NEQ=1,NG15 |
---|
| 100 | DO MEQ=1,585 |
---|
| 101 | JN = JN + 1 |
---|
| 102 | IF ( JN == 9 + 1) THEN |
---|
| 103 | JN = 1 |
---|
| 104 | JT = JT + 1 |
---|
| 105 | IF ( JT == 5 + 1 ) THEN |
---|
| 106 | JT = 1 |
---|
| 107 | JP = JP + 1 |
---|
| 108 | IF ( JP == 13 + 1 ) THEN |
---|
| 109 | JP = 1 |
---|
| 110 | IGC= IGC + 1 |
---|
| 111 | END IF |
---|
| 112 | END IF |
---|
| 113 | END IF |
---|
| 114 | ABSA(MEQ,NEQ) = KA(JN,JT,JP,IGC) |
---|
| 115 | ENDDO |
---|
| 116 | ENDDO |
---|
| 117 | |
---|
| 118 | ! +--Force the equivalence: END (HG, 13-DEC-2003) |
---|
| 119 | ! + ========================== |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | RETURN |
---|
| 123 | END SUBROUTINE RRTM_CMBGB15 |
---|