Ignore:
Timestamp:
Sep 26, 2017, 12:43:42 PM (7 years ago)
Author:
jvatant
Message:

Get rid of all the old-generic dummy aerosol scheme ( just left scatterers_h for compilation )
as the new microphysics for Titan will be plugged in
-> even removed sedimentation ( will be done in the microphysical model )
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/optcv.F90

    r1781 r1788  
    11SUBROUTINE OPTCV(DTAUV,TAUV,TAUCUMV,PLEV,  &
    2      QXVAER,QSVAER,GVAER,WBARV,COSBV,       &
    3      TAURAY,TAUAERO,TMID,PMID,TAUGSURF)
     2     WBARV,COSBV,TAURAY,TMID,PMID,TAUGSURF)
    43
    54  use radinc_h
     
    4645  real*8 COSBV(L_NLAYRAD,L_NSPECTV,L_NGAUSS)
    4746  real*8 WBARV(L_NLAYRAD,L_NSPECTV,L_NGAUSS)
    48 
    49   ! for aerosols
    50   real*8  QXVAER(L_LEVELS,L_NSPECTV,NAERKIND)
    51   real*8  QSVAER(L_LEVELS,L_NSPECTV,NAERKIND)
    52   real*8  GVAER(L_LEVELS,L_NSPECTV,NAERKIND)
    53   real*8  TAUAERO(L_LEVELS,NAERKIND)
    54   real*8  TAUAEROLK(L_LEVELS,L_NSPECTV,NAERKIND)
    55   real*8  TAEROS(L_LEVELS,L_NSPECTV,NAERKIND)
    5647
    5748  ! Titan customisation
     
    7667
    7768  real*8 taugsurf(L_NSPECTV,L_NGAUSS-1)
    78   real*8 DCONT,DAERO
     69  real*8 DCONT
    7970  real*8 DRAYAER
    8071  double precision wn_cont, p_cont, p_air, T_cont, dtemp, dtempc
     
    129120  end do                    ! levels
    130121
    131   ! Spectral dependance of aerosol absorption
    132   do iaer=1,naerkind
    133      do NW=1,L_NSPECTV
    134         do K=2,L_LEVELS
    135            TAEROS(K,NW,IAER) = TAUAERO(K,IAER) * QXVAER(K,NW,IAER)
    136         end do                    ! levels
    137      end do
    138   end do
    139  
    140122  ! Rayleigh scattering
    141123  do NW=1,L_NSPECTV
     
    158140        DRAYAER = TRAY(K,NW)
    159141        !     DRAYAER is Tau RAYleigh scattering, plus AERosol opacity
    160         do iaer=1,naerkind
    161            DRAYAER = DRAYAER + TAEROS(K,NW,IAER)
    162         end do
    163 
    164142        DRAYAER = DRAYAER + DHAZE_T(K,NW) ! Titan's aerosol
    165143
     
    275253  !     we need to calculate the scattering albedo and asymmetry factors
    276254
    277   do iaer=1,naerkind
    278     DO NW=1,L_NSPECTV
    279       DO K=2,L_LEVELS
    280            TAUAEROLK(K,NW,IAER) = TAUAERO(K,IAER) * QSVAER(K,NW,IAER) ! effect of scattering albedo
    281       ENDDO
    282     ENDDO
    283   end do
    284  
    285255  ! Haze scattering
    286256  DO NW=1,L_NSPECTV
     
    294264     DO L=1,L_NLAYRAD-1
    295265        K              = 2*L+1
    296         atemp(L,NW) = SUM(GVAER(K,NW,1:naerkind) * TAUAEROLK(K,NW,1:naerkind))+SUM(GVAER(K+1,NW,1:naerkind) * TAUAEROLK(K+1,NW,1:naerkind)) &
    297                     + ASF_T(K,NW)*DHAZES_T(K,NW) + ASF_T(K+1,NW)*DHAZES_T(K+1,NW)
    298         btemp(L,NW) = SUM(TAUAEROLK(K,NW,1:naerkind)) + SUM(TAUAEROLK(K+1,NW,1:naerkind)) &
    299                     + DHAZES_T(K,NW) + DHAZES_T(K+1,NW)
     266        atemp(L,NW) = ASF_T(K,NW)*DHAZES_T(K,NW) + ASF_T(K+1,NW)*DHAZES_T(K+1,NW)
     267        btemp(L,NW) = DHAZES_T(K,NW) + DHAZES_T(K+1,NW)
    300268        ctemp(L,NW) = btemp(L,NW) + 0.9999*(TRAY(K,NW) + TRAY(K+1,NW)) ! JVO 2017 : does this 0.999 is really meaningful ?
    301269        btemp(L,NW) = btemp(L,NW) + TRAY(K,NW) + TRAY(K+1,NW)
     
    306274     L           = L_NLAYRAD
    307275     K           = 2*L+1
    308      atemp(L,NW) = SUM(GVAER(K,NW,1:naerkind) * TAUAEROLK(K,NW,1:naerkind)) &
    309                  + ASF_T(K,NW)*DHAZES_T(K,NW)
    310      btemp(L,NW) = SUM(TAUAEROLK(K,NW,1:naerkind)) &
    311                  + DHAZES_T(K,NW)
     276     atemp(L,NW) = ASF_T(K,NW)*DHAZES_T(K,NW)
     277     btemp(L,NW) = DHAZES_T(K,NW)
    312278     ctemp(L,NW) = btemp(L,NW) + 0.9999*TRAY(K,NW) ! JVO 2017 : does this 0.999 is really meaningful ?
    313279     btemp(L,NW) = btemp(L,NW) + TRAY(K,NW)
Note: See TracChangeset for help on using the changeset viewer.