GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: phylmd/rrtm/srtm_cmbgb23.F90 Lines: 0 30 0.0 %
Date: 2023-06-30 12:56:34 Branches: 0 28 0.0 %

Line Branch Exec Source
1
SUBROUTINE SRTM_CMBGB23
2
3
!     BAND 23:  8050-12850 cm-1 (low - H2O; high - nothing)
4
!-----------------------------------------------------------------------
5
6
USE PARKIND1  ,ONLY : JPIM , JPRB
7
USE YOMHOOK   ,ONLY : LHOOK, DR_HOOK
8
9
USE YOESRTWN , ONLY : NGC, NGS, NGN, RWGT
10
USE YOESRTA23, ONLY : KA, SELFREF, FORREF, SFLUXREF, RAYL, &
11
                    & KAC, SELFREFC, FORREFC, SFLUXREFC, RAYLC
12
13
IMPLICIT NONE
14
15
! Local variables
16
INTEGER(KIND=JPIM) :: JT, JP, IGC, IPR, IPRSM
17
REAL(KIND=JPRB)    :: ZSUMK, ZSUMF1, ZSUMF2
18
19
REAL(KIND=JPRB) :: ZHOOK_HANDLE
20
!     ------------------------------------------------------------------
21
IF (LHOOK) CALL DR_HOOK('SRTM_CMBGB23',0,ZHOOK_HANDLE)
22
23
DO JT = 1,5
24
  DO JP = 1,13
25
    IPRSM = 0
26
    DO IGC = 1,NGC(8)
27
      ZSUMK = 0.
28
      DO IPR = 1, NGN(NGS(7)+IGC)
29
        IPRSM = IPRSM + 1
30
        ZSUMK = ZSUMK + KA(JT,JP,IPRSM)*RWGT(IPRSM+112)
31
      ENDDO
32
      KAC(JT,JP,IGC) = ZSUMK
33
    ENDDO
34
  ENDDO
35
ENDDO
36
37
DO JT = 1,10
38
  IPRSM = 0
39
  DO IGC = 1,NGC(8)
40
    ZSUMK = 0.
41
    DO IPR = 1, NGN(NGS(7)+IGC)
42
      IPRSM = IPRSM + 1
43
      ZSUMK = ZSUMK + SELFREF(JT,IPRSM)*RWGT(IPRSM+112)
44
    ENDDO
45
    SELFREFC(JT,IGC) = ZSUMK
46
  ENDDO
47
ENDDO
48
49
DO JT = 1,3
50
  IPRSM = 0
51
  DO IGC = 1,NGC(8)
52
    ZSUMK = 0.
53
    DO IPR = 1, NGN(NGS(7)+IGC)
54
      IPRSM = IPRSM + 1
55
      ZSUMK = ZSUMK + FORREF(JT,IPRSM)*RWGT(IPRSM+112)
56
    ENDDO
57
    FORREFC(JT,IGC) = ZSUMK
58
  ENDDO
59
ENDDO
60
61
IPRSM = 0
62
DO IGC = 1,NGC(8)
63
  ZSUMF1 = 0.
64
  ZSUMF2 = 0.
65
  DO IPR = 1, NGN(NGS(7)+IGC)
66
    IPRSM = IPRSM + 1
67
    ZSUMF1 = ZSUMF1 + SFLUXREF(IPRSM)
68
    ZSUMF2 = ZSUMF2 + RAYL(IPRSM)*RWGT(IPRSM+112)
69
  ENDDO
70
  SFLUXREFC(IGC) = ZSUMF1
71
  RAYLC(IGC) = ZSUMF2
72
ENDDO
73
74
!     -----------------------------------------------------------------
75
IF (LHOOK) CALL DR_HOOK('SRTM_CMBGB23',1,ZHOOK_HANDLE)
76
END SUBROUTINE SRTM_CMBGB23
77