source: LMDZ6/trunk/libf/phylmd/rrtm/srtm_taumol25.F90 @ 5294

Last change on this file since 5294 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: 3.4 KB
Line 
1SUBROUTINE SRTM_TAUMOL25 &
2 & ( KLEV,&
3 & P_FAC00   , P_FAC01  , P_FAC10   , P_FAC11,&
4 & K_JP      , K_JT     , K_JT1     , P_ONEMINUS,&
5 & P_COLH2O  , P_COLMOL , P_COLO3,&
6 & K_LAYTROP,&
7 & P_SFLUXZEN, P_TAUG   , P_TAUR    &
8 & ) 
9
10!     Written by Eli J. Mlawer, Atmospheric & Environmental Research.
11
12!     BAND 25:  16000-22650 cm-1 (low - H2O; high - nothing)
13
14!      PARAMETER (MG=16, MXLAY=203, NBANDS=14)
15
16! Modifications
17!        M.Hamrud      01-Oct-2003 CY28 Cleaning
18
19!     JJMorcrette 2003-02-24 adapted to ECMWF environment
20
21!      PARAMETER (MG=16, MXLAY=203, NBANDS=14)
22
23USE PARKIND1  ,ONLY : JPIM     ,JPRB
24USE YOMHOOK   ,ONLY : LHOOK,   DR_HOOK
25
26USE PARSRTM  , ONLY : JPLAY, JPG, NG25
27USE YOESRTA25, ONLY : ABSA &
28 & , SFLUXREFC, ABSO3AC, ABSO3BC, RAYLC &
29 & , LAYREFFR 
30USE YOESRTWN , ONLY : NSPA
31
32IMPLICIT NONE
33
34!-- Output
35INTEGER(KIND=JPIM),INTENT(IN)    :: KLEV
36REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC00(JPLAY)
37REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC01(JPLAY)
38REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC10(JPLAY)
39REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC11(JPLAY)
40INTEGER(KIND=JPIM),INTENT(IN)    :: K_JP(JPLAY)
41INTEGER(KIND=JPIM),INTENT(IN)    :: K_JT(JPLAY)
42INTEGER(KIND=JPIM),INTENT(IN)    :: K_JT1(JPLAY)
43REAL(KIND=JPRB)                  :: P_ONEMINUS ! Argument NOT used
44REAL(KIND=JPRB)   ,INTENT(IN)    :: P_COLH2O(JPLAY)
45REAL(KIND=JPRB)   ,INTENT(IN)    :: P_COLMOL(JPLAY)
46REAL(KIND=JPRB)   ,INTENT(IN)    :: P_COLO3(JPLAY)
47INTEGER(KIND=JPIM),INTENT(IN)    :: K_LAYTROP
48
49REAL(KIND=JPRB)   ,INTENT(OUT)   :: P_SFLUXZEN(JPG)
50REAL(KIND=JPRB)   ,INTENT(OUT)   :: P_TAUG(JPLAY,JPG)
51REAL(KIND=JPRB)   ,INTENT(OUT)   :: P_TAUR(JPLAY,JPG)
52!- from INTFAC     
53!- from INTIND
54!- from PRECISE             
55!- from PROFDATA             
56!- from SELF             
57INTEGER(KIND=JPIM) :: IG, IND0, IND1, I_LAY, I_LAYSOLFR, I_NLAYERS
58
59REAL(KIND=JPRB) ::  &
60 & Z_TAURAY 
61REAL(KIND=JPRB) :: ZHOOK_HANDLE
62
63IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL25',0,ZHOOK_HANDLE)
64I_NLAYERS = KLEV
65
66!     Compute the optical depth by interpolating in ln(pressure),
67!     temperature, and appropriate species.  Below LAYTROP, the water
68!     vapor self-continuum is interpolated (in temperature) separately. 
69
70I_LAYSOLFR = K_LAYTROP
71
72DO I_LAY = 1, K_LAYTROP
73  IF (K_JP(I_LAY) < LAYREFFR .AND. K_JP(I_LAY+1) >= LAYREFFR) &
74   & I_LAYSOLFR = MIN(I_LAY+1,K_LAYTROP) 
75  IND0 = ((K_JP(I_LAY)-1)*5+(K_JT(I_LAY)-1))*NSPA(25) + 1
76  IND1 = (K_JP(I_LAY)*5+(K_JT1(I_LAY)-1))*NSPA(25) + 1
77
78!  DO IG = 1, NG(25)
79  DO IG = 1 , NG25
80    Z_TAURAY = P_COLMOL(I_LAY) * RAYLC(IG)
81    P_TAUG(I_LAY,IG) = P_COLH2O(I_LAY) * &
82     & (P_FAC00(I_LAY) * ABSA(IND0,IG) + &
83     & P_FAC10(I_LAY) * ABSA(IND0+1,IG) + &
84     & P_FAC01(I_LAY) * ABSA(IND1,IG) + &
85     & P_FAC11(I_LAY) * ABSA(IND1+1,IG)) + &
86     & P_COLO3(I_LAY) * ABSO3AC(IG)   
87!     &          + TAURAY
88!    SSA(LAY,IG) = TAURAY/TAUG(LAY,IG)
89    IF (I_LAY == I_LAYSOLFR) P_SFLUXZEN(IG) = SFLUXREFC(IG)
90    P_TAUR(I_LAY,IG) = Z_TAURAY
91  ENDDO
92ENDDO
93
94DO I_LAY = K_LAYTROP+1, I_NLAYERS
95!  DO IG = 1, NG(25)
96  DO IG = 1 , NG25
97    Z_TAURAY = P_COLMOL(I_LAY) * RAYLC(IG)
98    P_TAUG(I_LAY,IG) = P_COLO3(I_LAY) * ABSO3BC(IG)
99!     &          + TAURAY
100!    SSA(LAY,IG) = TAURAY/TAUG(LAY,IG)
101    P_TAUR(I_LAY,IG) = Z_TAURAY
102  ENDDO
103ENDDO
104
105!-----------------------------------------------------------------------
106IF (LHOOK) CALL DR_HOOK('SRTM_TAUMOL25',1,ZHOOK_HANDLE)
107END SUBROUTINE SRTM_TAUMOL25
108
Note: See TracBrowser for help on using the repository browser.