Ignore:
Timestamp:
Dec 14, 2015, 11:43:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2298:2396 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/radlwsw_m.F90

    r2258 r2408  
    2424   qsat, flwc, fiwc, &
    2525   ref_liq, ref_ice, ref_liq_pi, ref_ice_pi, &
    26    heat,heat0,cool,cool0,radsol,albpla,&
     26   heat,heat0,cool,cool0,albpla,&
    2727   topsw,toplw,solsw,sollw,&
    2828   sollwdown,&
     
    4848  USE DIMPHY
    4949  USE assert_m, ONLY : assert
    50   USE infotrac, ONLY : type_trac
     50  USE infotrac_phy, ONLY : type_trac
    5151  USE write_field_phy
    5252#ifdef REPROBUS
     
    7777      USE YOERRTWN , ONLY : DELWAVE   ,TOTPLNK     
    7878      USE YOMPHY3  , ONLY : RII0
    79 #else
    80       USE aero_mod, ONLY : nbands_lw_rrtm
    8179#endif
     80      USE aero_mod
    8281
    8382  !======================================================================
     
    111110  ! heat-----output-R- echauffement atmospherique (visible) (K/jour)
    112111  ! cool-----output-R- refroidissement dans l'IR (K/jour)
    113   ! radsol---output-R- bilan radiatif net au sol (W/m**2) (+ vers le bas)
    114112  ! albpla---output-R- albedo planetaire (entre 0 et 1)
    115113  ! topsw----output-R- flux solaire net au sommet de l'atm.
     
    171169  include "YOMCST.h"
    172170  include "clesphys.h"
    173   include "iniprint.h"
    174171
    175172! Input arguments
     
    195192  LOGICAL, INTENT(in)  :: flag_aerosol_strat                             ! use stratospheric aerosols
    196193  REAL,    INTENT(in)  :: cldfra(KLON,KLEV), cldemi(KLON,KLEV), cldtaupd(KLON,KLEV)
    197   REAL,    INTENT(in)  :: tau_aero(KLON,KLEV,9,2)                        ! aerosol optical properties (see aeropt.F)
    198   REAL,    INTENT(in)  :: piz_aero(KLON,KLEV,9,2)                        ! aerosol optical properties (see aeropt.F)
    199   REAL,    INTENT(in)  :: cg_aero(KLON,KLEV,9,2)                         ! aerosol optical properties (see aeropt.F)
     194  REAL,    INTENT(in)  :: tau_aero(KLON,KLEV,naero_grp,2)                        ! aerosol optical properties (see aeropt.F)
     195  REAL,    INTENT(in)  :: piz_aero(KLON,KLEV,naero_grp,2)                        ! aerosol optical properties (see aeropt.F)
     196  REAL,    INTENT(in)  :: cg_aero(KLON,KLEV,naero_grp,2)                         ! aerosol optical properties (see aeropt.F)
    200197!--OB
    201198  REAL,    INTENT(in)  :: tau_aero_sw_rrtm(KLON,KLEV,2,NSW)                 ! aerosol optical properties RRTM
     
    225222  REAL,    INTENT(out) :: heat(KLON,KLEV), cool(KLON,KLEV)
    226223  REAL,    INTENT(out) :: heat0(KLON,KLEV), cool0(KLON,KLEV)
    227   REAL,    INTENT(out) :: radsol(KLON), topsw(KLON), toplw(KLON)
     224  REAL,    INTENT(out) :: topsw(KLON), toplw(KLON)
    228225  REAL,    INTENT(out) :: solsw(KLON), sollw(KLON), albpla(KLON)
    229226  REAL,    INTENT(out) :: topsw0(KLON), toplw0(KLON), solsw0(KLON), sollw0(KLON)
     
    293290  REAL(KIND=8) zsolsw0(kdlon), zsollw0(kdlon)
    294291  REAL(KIND=8) zznormcp
    295   REAL(KIND=8) tauaero(kdlon,kflev,9,2)                     ! aer opt properties
    296   REAL(KIND=8) pizaero(kdlon,kflev,9,2)
    297   REAL(KIND=8) cgaero(kdlon,kflev,9,2)
     292  REAL(KIND=8) tauaero(kdlon,kflev,naero_grp,2)                     ! aer opt properties
     293  REAL(KIND=8) pizaero(kdlon,kflev,naero_grp,2)
     294  REAL(KIND=8) cgaero(kdlon,kflev,naero_grp,2)
    298295  REAL(KIND=8) PTAUA(kdlon,2,kflev)                         ! present-day value of cloud opt thickness (PTAU is pre-industrial value), local use
    299296  REAL(KIND=8) POMEGAA(kdlon,2,kflev)                       ! dito for single scatt albedo
     
    393390  IF (nb_gr*kdlon .NE. KLON) THEN
    394391      PRINT*, "kdlon mauvais:", KLON, kdlon, nb_gr
    395       call abort_gcm("radlwsw", "", 1)
     392      call abort_physic("radlwsw", "", 1)
    396393  ENDIF
    397394  IF (kflev .NE. KLEV) THEN
    398395      PRINT*, "kflev differe de KLEV, kflev, KLEV"
    399       call abort_gcm("radlwsw", "", 1)
     396      call abort_physic("radlwsw", "", 1)
    400397  ENDIF
    401398  !-------------------------------------------
     
    1000997          zalbpla(i)   = ZFSUP(i,klev+1)/ZFSDN(i,klev+1)
    1001998         ENDIF
    1002          zsollwdown(i)= ZFLDN(i,1)
     999!!! 5 juin 2015
     1000!!! Correction MP bug RRTM
     1001         zsollwdown(i)= -1.*ZFLDN(i,1)
    10031002      ENDDO
    10041003!     print*,'OK2'
     
    10251024#else
    10261025    abort_message="You should compile with -rrtm if running with iflag_rrtm=1"
    1027     call abort_gcm(modname, abort_message, 1)
     1026    call abort_physic(modname, abort_message, 1)
    10281027#endif
    10291028    ENDIF ! iflag_rrtm
     
    10311030
    10321031    DO i = 1, kdlon
    1033       radsol(iof+i) = zsolsw(i) + zsollw(i)
    10341032      topsw(iof+i) = ztopsw(i)
    10351033      toplw(iof+i) = ztoplw(i)
Note: See TracChangeset for help on using the changeset viewer.