Ignore:
Timestamp:
Feb 18, 2026, 10:28:23 AM (6 weeks ago)
Author:
mturbet
Message:

renaming and merging of radiative routines in phygeneric

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phygeneric/aerosol_opacity.F90

    r4076 r4077  
    1 module aeropacity_mod
     1module aerosol_opacity_mod
    22
    33implicit none
     
    55contains
    66
    7       Subroutine aeropacity(ngrid,nlayer,nq,pplay,pplev,pt,pq,zls, &
     7      Subroutine aerosol_opacity(ngrid,nlayer,nq,pplay,pplev,pt,pq,zls, &
    88         aerosol,reffrad,nueffrad, QREFvis3d,QREFir3d,tau_col, &
    99         cloudfrac,totcloudfrac,clearsky)
    1010
    1111       use radinc_h, only : L_TAUMAX,naerkind
    12        use aerosol_mod, only: iaero_nlay, iaero_generic, &
     12       use aerosol_global_variables , only: iaero_nlay, iaero_generic, &
    1313                              iaero_aurora, iaero_back2lay, iaero_co2, &
    1414                              iaero_dust, iaero_h2o, iaero_h2so4, &
     
    120120      IF (firstcall) THEN
    121121        ia =0
    122         write(*,*) "Tracers found in aeropacity:"
     122        write(*,*) "Tracers found in aerosol_opacity:"
    123123        do iq=1,nq
    124124          tracername=noms(iq)
     
    135135
    136136        if (noaero) then
    137           print*, "No active aerosols found in aeropacity"
     137          print*, "No active aerosols found in aerosol_opacity"
    138138        else
    139139          print*, "If you would like to use aerosols, make sure any old"
    140140          print*, "start files are updated in newstart using the option"
    141141          print*, "q=0"
    142           write(*,*) "Active aerosols found in aeropacity:"
     142          write(*,*) "Active aerosols found in aerosol_opacity:"
    143143        endif
    144144
     
    269269                  end do
    270270
    271                   call abort_physic("aeropacity", "Something wrong happened on water ice liquid opacity calculation",1)
     271                  call abort_physic("aerosol_opacity", "Something wrong happened on water ice liquid opacity calculation",1)
    272272               endif
    273273
     
    276276               do ig=1, ngrid
    277277                  !do l=1,nlayer-1 ! to stop the rad tran bug
    278                   do l=1,nlayer !JL18 if aerosols are present in the last layer we must account for them. Provides better upper boundary condition in the IR. They must however be put to zero in the sw (see optcv)
     278                  do l=1,nlayer !JL18 if aerosols are present in the last layer we must account for them. Provides better upper boundary condition in the IR. They must however be put to zero in the sw (see rad_correlatedk_opacities_stellar)
    279279                                ! same correction should b-probably be done for other aerosol types.
    280280                     aerosol(ig,l,iaer) =                                    & !modification by BC
     
    294294                  do ig=1, ngrid
    295295                     !do l=1,nlayer-1 ! to stop the rad tran bug
    296                      do l=1,nlayer !JL18 if aerosols are present in the last layer we must account for them. Provides better upper boundary condition in the IR. They must however be put to zero in the sw (see optcv)
     296                     do l=1,nlayer !JL18 if aerosols are present in the last layer we must account for them. Provides better upper boundary condition in the IR. They must however be put to zero in the sw (see rad_correlatedk_opacities_stellar)
    297297                        CLFtot  = max(totcloudfrac(ig),0.01)
    298298                        aerosol(ig,l,iaer)=aerosol(ig,l,iaer)/CLFtot
     
    303303                  do ig=1, ngrid
    304304                     !do l=1,nlayer-1 ! to stop the rad tran bug
    305                      do l=1,nlayer !JL18 if aerosols are present in the last layer we must account for them. Provides better upper boundary condition in the IR. They must however be put to zero in the sw (see optcv)
     305                     do l=1,nlayer !JL18 if aerosols are present in the last layer we must account for them. Provides better upper boundary condition in the IR. They must however be put to zero in the sw (see rad_correlatedk_opacities_stellar)
    306306                        CLFtot  = CLFfixval
    307307                        aerosol(ig,l,iaer)=aerosol(ig,l,iaer)/CLFtot
     
    10921092      ! end do
    10931093
    1094     end subroutine aeropacity
     1094    end subroutine aerosol_opacity
    10951095     
    1096 end module aeropacity_mod
     1096end module aerosol_opacity_mod
Note: See TracChangeset for help on using the changeset viewer.