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

File:
1 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              !
Note: See TracChangeset for help on using the changeset viewer.