source: LMDZ5/trunk/libf/phylmd/rrtm/srtm_cmbgb23.F90 @ 5360

Last change on this file since 5360 was 1990, checked in by Laurent Fairhead, 11 years ago

Corrections à la version r1989 pour permettre la compilation avec RRTM
Inclusion de la licence CeCILL_V2 pour RRTM


Changes to revision r1989 to enable RRTM code compilation
RRTM part put under CeCILL_V2 licence

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 1.8 KB
Line 
1SUBROUTINE SRTM_CMBGB23
2
3!     BAND 23:  8050-12850 cm-1 (low - H2O; high - nothing)
4!-----------------------------------------------------------------------
5
6USE PARKIND1  ,ONLY : JPIM , JPRB
7USE YOMHOOK   ,ONLY : LHOOK, DR_HOOK
8
9USE YOESRTWN , ONLY : NGC, NGS, NGN, RWGT
10USE YOESRTA23, ONLY : KA, SELFREF, FORREF, SFLUXREF, RAYL, &
11                    & KAC, SELFREFC, FORREFC, SFLUXREFC, RAYLC
12
13IMPLICIT NONE
14
15! Local variables
16INTEGER(KIND=JPIM) :: JT, JP, IGC, IPR, IPRSM
17REAL(KIND=JPRB)    :: ZSUMK, ZSUMF1, ZSUMF2
18
19REAL(KIND=JPRB) :: ZHOOK_HANDLE
20!     ------------------------------------------------------------------
21IF (LHOOK) CALL DR_HOOK('SRTM_CMBGB23',0,ZHOOK_HANDLE)
22
23DO 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
35ENDDO
36
37DO 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
47ENDDO
48
49DO 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
59ENDDO
60
61IPRSM = 0
62DO 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
72ENDDO
73
74!     -----------------------------------------------------------------
75IF (LHOOK) CALL DR_HOOK('SRTM_CMBGB23',1,ZHOOK_HANDLE)
76END SUBROUTINE SRTM_CMBGB23
77
Note: See TracBrowser for help on using the repository browser.