Changeset 2325


Ignore:
Timestamp:
Jul 8, 2015, 10:17:34 PM (9 years ago)
Author:
oboucher
Message:

Enabling aerosols for the case RRTM + NSW=2
In this case we use the old aerosol properties

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/physiq.F90

    r2321 r2325  
    31073107     !jq - Johannes Quaas, 27/11/2003 (quaas@lmd.jussieu.fr)
    31083108     IF (flag_aerosol .gt. 0) THEN
    3109         IF (iflag_rrtm .EQ. 0) THEN !--old radiation
     3109         IF (iflag_rrtm .EQ. 0) THEN !--old radiation
    31103110           IF (.NOT. aerosol_couple) THEN
    31113111              !
     
    31243124!
    31253125#ifdef CPP_RRTM
     3126           IF (NSW.EQ.6) THEN
     3127!--new aerosol properties
     3128!
    31263129             CALL readaerosol_optic_rrtm( debut, aerosol_couple, &
    31273130             new_aod, flag_aerosol, itap, jD_cur-jD_ref, &
     
    31313134             tausum_aero, tau3d_aero)
    31323135
    3133              CALL aeropt_lw_rrtm
     3136           ELSE IF (NSW.EQ.2) THEN
     3137!--for now we use the old aerosol properties
     3138!
     3139              CALL readaerosol_optic( &
     3140                   debut, new_aod, flag_aerosol, itap, jD_cur-jD_ref, &
     3141                   pdtphys, pplay, paprs, t_seri, rhcl, presnivs,  &
     3142                   mass_solu_aero, mass_solu_aero_pi,  &
     3143                   tau_aero, piz_aero, cg_aero,  &
     3144                   tausum_aero, tau3d_aero)
     3145!
     3146                   !--natural aerosols
     3147                   tau_aero_sw_rrtm(:,:,1,:)=tau_aero(:,:,3,:)
     3148                   piz_aero_sw_rrtm(:,:,1,:)=piz_aero(:,:,3,:)
     3149                   cg_aero_sw_rrtm (:,:,1,:)=cg_aero (:,:,3,:)
     3150                   !--all aerosols
     3151                   tau_aero_sw_rrtm(:,:,2,:)=tau_aero(:,:,2,:)
     3152                   piz_aero_sw_rrtm(:,:,2,:)=piz_aero(:,:,2,:)
     3153                   cg_aero_sw_rrtm (:,:,2,:)=cg_aero (:,:,2,:)
     3154           ELSE
     3155              abort_message='Only NSW=2 or 6 are possible with aerosols and iflag_rrtm=1'
     3156              call abort_physic(modname,abort_message,1)
     3157           ENDIF
     3158
     3159           CALL aeropt_lw_rrtm
     3160!
    31343161#else
    3135 
    3136               abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
    3137               call abort_physic(modname,abort_message,1)
     3162           abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
     3163           call abort_physic(modname,abort_message,1)
    31383164#endif
    31393165              !
  • LMDZ5/trunk/libf/phylmd/rrtm/readaerosol_optic_rrtm.F90

    r2323 r2325  
    301301  END DO
    302302
    303 ! AI 12 juin 2015
    304 ! Modif Olivier pour prendre en compte des prop optiq aero ancienne pour RRTM 2bds
    305 
    306 IF (NSW.EQ.2) THEN
    307 !--old aerosol properties
    308 
    309    ! old aeropt_2bands for rrtm
    310    CALL aeropt_2bands( &
    311          pdel, m_allaer, pdtphys, rhcl, &
    312          tau_aero, piz_aero, cg_aero,   &
    313          m_allaer_pi, flag_aerosol, &
    314          pplay, t_seri, presnivs)
    315 
    316    ! aeropt_5wv only for validation and diagnostics.
    317    CALL aeropt_5wv(                    &
    318         pdel, m_allaer,                &
    319         pdtphys, rhcl, aerindex,       &
    320         flag_aerosol, pplay, t_seri,   &
    321         tausum_aero, tau3d_aero, presnivs)
    322 
    323 ELSEIF (NSW.EQ.6) THEN
    324 !--new aerosol propertie
     303!--new aerosol properties
    325304  ! aeropt_6bands for rrtm
    326305  CALL aeropt_6bands_rrtm( &
     
    336315       flag_aerosol, pplay, t_seri,   &
    337316       tausum_aero, tau3d_aero )
    338 
    339 ELSE
    340 
    341     PRINT *,'Cas NSW non prevu pour RRTM - NSW=',NSW
    342     STOP
    343 
    344 ENDIF
    345317
    346318  ! Diagnostics calculation for CMIP5 protocol
Note: See TracChangeset for help on using the changeset viewer.