source: LMDZ6/branches/LMDZ_cdrag_LSCE/libf/phylmd/ecrad/srtm_cmbgb28.F90 @ 5407

Last change on this file since 5407 was 3908, checked in by idelkadi, 4 years ago

Online implementation of the radiative transfer code ECRAD in the LMDZ model.

  • Inclusion of the ecrad directory containing the sources of the ECRAD code
    • interface routine : radiation_scheme.F90
  • Adaptation of compilation scripts :
    • compilation under CPP key CPP_ECRAD
    • compilation with option "-rad ecard" or "-ecard true"
    • The "-rad old/rtm/ecran" build option will need to replace the "-rrtm true" and "-ecrad true" options in the future.
  • Runing LMDZ simulations with ecrad, you need :
    • logical key iflag_rrtm = 2 in physiq.def
    • namelist_ecrad (DefLists?)
    • the directory "data" containing the configuration files is temporarily placed in ../libfphylmd/ecrad/
  • Compilation and execution are tested in the 1D case. The repository under svn would allow to continue the implementation work: tests, verification of the results, ...
File size: 1.7 KB
Line 
1SUBROUTINE SRTM_CMBGB28
2
3!     BAND 28:  38000-50000 cm-1 (low - O3,O2; high - O3,O2)
4!-----------------------------------------------------------------------
5
6USE PARKIND1  ,ONLY : JPIM , JPRB
7USE YOMHOOK   ,ONLY : LHOOK, DR_HOOK
8
9USE YOESRTM  , ONLY : NGN
10USE YOESRTWN , ONLY : NGC, NGS, RWGT
11!USE YOESRTWN , ONLY : NGC, NGS, NGN, RWGT
12USE YOESRTA28, ONLY : KA, KB, SFLUXREF, &
13                    & KAC, KBC, SFLUXREFC
14
15IMPLICIT NONE
16
17! Local variables
18INTEGER(KIND=JPIM) :: JN, JT, JP, IGC, IPR, IPRSM
19REAL(KIND=JPRB)    :: ZSUMK, ZSUMF
20
21REAL(KIND=JPRB) :: ZHOOK_HANDLE
22!     ------------------------------------------------------------------
23IF (LHOOK) CALL DR_HOOK('SRTM_CMBGB28',0,ZHOOK_HANDLE)
24
25DO JN = 1,9
26  DO JT = 1,5
27    DO JP = 1,13
28      IPRSM = 0
29      DO IGC = 1,NGC(13)
30        ZSUMK = 0.
31        DO IPR = 1, NGN(NGS(12)+IGC)
32          IPRSM = IPRSM + 1
33          ZSUMK = ZSUMK + KA(JN,JT,JP,IPRSM)*RWGT(IPRSM+192)
34        ENDDO
35        KAC(JN,JT,JP,IGC) = ZSUMK
36      ENDDO
37    ENDDO
38  ENDDO
39ENDDO
40
41DO JN = 1,5
42  DO JT = 1,5
43    DO JP = 13,59
44      IPRSM = 0
45      DO IGC = 1,NGC(13)
46        ZSUMK = 0.
47        DO IPR = 1, NGN(NGS(12)+IGC)
48          IPRSM = IPRSM + 1
49          ZSUMK = ZSUMK + KB(JN,JT,JP,IPRSM)*RWGT(IPRSM+192)
50        ENDDO
51        KBC(JN,JT,JP,IGC) = ZSUMK
52      ENDDO
53    ENDDO
54  ENDDO
55ENDDO
56
57DO JP = 1,5
58  IPRSM = 0
59  DO IGC = 1,NGC(13)
60    ZSUMF = 0.
61    DO IPR = 1, NGN(NGS(12)+IGC)
62      IPRSM = IPRSM + 1
63      ZSUMF = ZSUMF + SFLUXREF(IPRSM,JP)
64    ENDDO
65    SFLUXREFC(IGC,JP) = ZSUMF
66  ENDDO
67ENDDO
68
69!     -----------------------------------------------------------------
70IF (LHOOK) CALL DR_HOOK('SRTM_CMBGB28',1,ZHOOK_HANDLE)
71END SUBROUTINE SRTM_CMBGB28
72
Note: See TracBrowser for help on using the repository browser.