Changeset 3687 for trunk/LMDZ.PLUTO


Ignore:
Timestamp:
Mar 17, 2025, 10:00:19 AM (5 months ago)
Author:
debatzbr
Message:

Initialize dtlw_hcn_c2h2 if cooling = false
BBT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/callcorrk.F90

    r3685 r3687  
    450450!--------------------------------------------------
    451451!     Effective radius and variance of the aerosols
     452!     Madeleine's PhD (eq. 2.3-2.4):
     453!     --> r_eff = <r^3> / <r^2>
     454!     --> nu_eff = <r^4>*<r^2> / <r^3>^2 - 1
    452455!--------------------------------------------------
    453456      ! Radiative Hazes
     
    456459            ! Spherical aerosols
    457460            sig = 0.2
    458             where (mp2m_rc_sph(:,:) > 1e-10)
     461            where (mp2m_rc_sph(:,:) > 1e-9)
    459462               reffrad(:,:,1) = mp2m_rc_sph(:,:) * exp(5.*sig**2 / 2.)
    460463            elsewhere
     
    468471            ! Fractal aerosols
    469472            sig = 0.35
    470             where (mp2m_rc_fra(:,:) > 1e-10)
     473            where (mp2m_rc_fra(:,:) > 1e-8)
    471474               reffrad(:,:,2) = mp2m_rc_fra(:,:) * exp(5.*sig**2 / 2.)
    472475               elsewhere
     
    543546!     Net atmospheric radiative cooling rate from C2H2 (K.s-1):
    544547!     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    545     !   dtlw_hcn_c2h2=0.
     548      dtlw_hcn_c2h2=0.
    546549      if (cooling) then
    547550         CALL cooling_hcn_c2h2(ngrid,nlayer,pplay,&
     
    11031106        end do
    11041107        ! adding c2h2 if cooling active
    1105         dtlw(ig,l)=dtlw(ig,l)+dtlw_hcn_c2h2(ig,l)
     1108        if (cooling) then
     1109         dtlw(ig,l)=dtlw(ig,l)+dtlw_hcn_c2h2(ig,l)
     1110        endif
    11061111
    11071112        !SW
Note: See TracChangeset for help on using the changeset viewer.