Changeset 2550


Ignore:
Timestamp:
Jun 8, 2016, 10:19:36 PM (9 years ago)
Author:
oboucher
Message:

Correcting a bug in the calculation of od550_strat
Computing od_10um_strat in readaerosolstrato*.F90

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

Legend:

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

    r2423 r2550  
    8888
    8989! Number of diagnostics wavelengths (5 SW + 1 LW @ 10 um)
    90   INTEGER, PARAMETER :: nwave = 5
     90  INTEGER, PARAMETER :: nwave_sw = 5
    9191  INTEGER, PARAMETER :: nwave_lw = 1
     92  INTEGER, PARAMETER :: nwave = nwave_sw + nwave_lw
    9293
    9394! Number of modes spectral bands
  • LMDZ5/trunk/libf/phylmd/aeropt_5wv.F90

    r2324 r2550  
    7474  ! Local
    7575  !
    76   INTEGER, PARAMETER :: las = nwave
     76  INTEGER, PARAMETER :: las = nwave_sw
    7777  LOGICAL :: soluble
    7878 
  • LMDZ5/trunk/libf/phylmd/readaerosolstrato.F90

    r2526 r2550  
    5555    data piz_strat  /0.9999998, 0.99762493/
    5656    data cg_strat   /0.73107845,0.73229635/
    57     real, dimension(nwave) :: alpha_strat_wave
     57    real, dimension(nwave_sw) :: alpha_strat_wave
    5858    data alpha_strat_wave/3.36780953,3.34667683,3.20444202,3.0293026,2.82108808/
    5959
     
    153153
    154154!--total vertical aod at the 6 wavelengths
    155     DO wave=1, nwave
     155    DO wave=1, nwave_sw
    156156    DO k=1, klev
    157157    tausum_aero(:,wave,id_STRAT_phy)=tausum_aero(:,wave,id_STRAT_phy)+tau_aer_strat(:,k)*alpha_strat_wave(wave)/alpha_strat_wave(2)
  • LMDZ5/trunk/libf/phylmd/rrtm/aeropt_5wv_rrtm.F90

    r2215 r2550  
    7070  ! Local
    7171  !
    72   INTEGER, PARAMETER :: las = nwave
     72  INTEGER, PARAMETER :: las = nwave_sw
    7373  LOGICAL :: soluble
    7474 
  • LMDZ5/trunk/libf/phylmd/rrtm/readaerosolstrato1_rrtm.F90

    r2536 r2550  
    6161!--diagnostics AOD in the SW
    6262! alpha_sw_strat_wave is *not* normalised by the 550 nm extinction coefficient
    63     real, dimension(nwave) :: alpha_sw_strat_wave
     63    real, dimension(nwave_sw) :: alpha_sw_strat_wave
    6464    data alpha_sw_strat_wave/3.708007,4.125824,4.136584,3.887478,3.507738/
    6565!
    66 !--diagnostics AOD in the LW at 10 um
    67     real :: alpha_lw_strat_wave
     66!--diagnostics AOD in the LW at 10 um (not normalised by the 550 nm ext coefficient
     67    real :: alpha_lw_strat_wave(nwave_lw)
    6868    data alpha_lw_strat_wave/0.2746812/
    6969!
     
    171171
    172172!--total vertical aod at the 5 SW wavelengths
    173     DO wave=1, nwave
     173    DO wave=1, nwave_sw
    174174    DO k=1, klev
    175     tausum_aero(:,wave,id_STRAT_phy)=tausum_aero(:,wave,id_STRAT_phy)+ &
    176        tau_aer_strat(:,k)*alpha_sw_strat_wave(wave)/alpha_sw_strat_wave(2)
     175      tausum_aero(:,wave,id_STRAT_phy)=tausum_aero(:,wave,id_STRAT_phy)+ &
     176          tau_aer_strat(:,k)*alpha_sw_strat_wave(wave)/alpha_sw_strat_wave(2)
    177177    ENDDO
    178178    ENDDO
     
    210210    ENDIF
    211211
     212!--total vertical aod at the 1 LW wavelength
     213    DO wave=1, nwave_lw
     214    DO k=1, klev
     215      tausum_aero(:,nwave_sw+wave,id_STRAT_phy)=tausum_aero(:,nwave_sw+wave,id_STRAT_phy)+ &
     216         tau_aer_strat(:,k)*alpha_lw_strat_wave(wave)/alpha_sw_strat_wave(2)
     217    ENDDO
     218    ENDDO
     219
    212220    DO band=1, nbands_lw_rrtm
    213221    tau_aero_lw_rrtm(:,:,2,band)  = tau_aero_lw_rrtm(:,:,2,band) + alpha_lw_abs_rrtm(band)*tau_aer_strat(:,:)
  • LMDZ5/trunk/libf/phylmd/rrtm/readaerosolstrato2_rrtm.F90

    r2539 r2550  
    269269!--total vertical aod at the 5 SW wavelengths
    270270!--for now use band 3 AOD into all 5 wavelengths
     271!--it is only a reasonable approximation for 550 nm (wave=2)
    271272    band=3
    272273    DO i=1, klon
    273274    DO k=1, klev
    274275      IF (stratomask(i,k).GT.0.999999) THEN
    275         DO wave=1, nwave
    276           tausum_aero(:,wave,id_STRAT_phy)=tausum_aero(:,wave,id_STRAT_phy)+tau_aer_strat(:,k,band)
     276        DO wave=1, nwave_sw
     277          tausum_aero(i,wave,id_STRAT_phy)=tausum_aero(i,wave,id_STRAT_phy)+tau_aer_strat(i,k,band)
    277278        ENDDO
    278279      ENDIF
     
    308309    ENDDO
    309310
     311!--total vertical aod at 10 um
     312!--this is approximated from band 7 of RRTM
     313    band=7
     314    DO i=1, klon
     315    DO k=1, klev
     316      IF (stratomask(i,k).GT.0.999999) THEN
     317        DO wave=1, nwave_lw
     318          tausum_aero(i,nwave_sw+wave,id_STRAT_phy)=tausum_aero(i,nwave_sw+wave,id_STRAT_phy)+taulw_aer_strat(i,k,band)
     319        ENDDO
     320      ENDIF
     321    ENDDO
     322    ENDDO
     323
    310324    DO band=1, NLW
    311325    WHERE (stratomask.GT.0.999999)
Note: See TracChangeset for help on using the changeset viewer.