Ignore:
Timestamp:
Sep 5, 2025, 3:21:38 PM (2 months ago)
Author:
jbclement
Message:

Mars PCM:
Partial reversion of r3847: removal of the incompatibility test requires 'microphys'?. Therefore, in "updatereffrad_mod.F", without microphysics, we use a typical value for 'tau' (0.2) to assess the number of cloud condensation nuclei in the same way than done before r744. Comments and unused variables are cleaned.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/updaterad.F90

    r2562 r3913  
    3939real, parameter :: rccnmax  = 500.e-6
    4040
    41 
    42 
    4341real, parameter :: ndust_threshold  = 1.
    4442real, parameter :: qdust_threshold  = 1.e-20
     
    5048real, parameter :: rdustmax  = 500.e-6 
    5149
    52 
    5350real, parameter :: rdust0 = 0.8e-6
    5451
    55 
    56      
    5752
    5853contains
     
    150145! Update ice radius from a typical profile if microphys == false
    151146subroutine updaterice_typ(qice,tau,pzlay,rice)
     147
    152148use tracer_mod, only: rho_ice
    153 USE comcstfi_h
     149USE comcstfi_h, only: pi
     150
    154151implicit none
    155152
     
    158155real, intent(in)  :: pzlay ! altitude at the middle of the layers
    159156real, intent(out) :: rice
    160 real rccn,nccn ! radius  and number of ice crystals
     157real :: rccn, nccn ! radius  and number of ice crystals
    161158
    162159!   Typical CCN profile following Montmessin et al. 2004
    163 !   (N0=2e6 m-3 has been converted into N0=1.3e8 kg-1, otherwise the equation for rice is not homogeneous...)
    164      nccn  = 1.3e+8*max(tau,0.001)/0.1*exp(-pzlay/10000.)
     160!   (N0=2e6 m-3 has been converted into N0=1.3e8 kg-1 using a typical atmospheric density,
     161!   otherwise the equation for rice is not homogeneous...)
     162     nccn = 1.3e+8*max(tau,0.001)/0.1*exp(-pzlay/10000.)
    165163!   The previously used profile was not correct:
    166164!   Nccn=( epaisseur/masse ) * 2.e+6/0.1*max(tau,0.001)*exp(-pzlay/10000.)
    167      
     165
    168166if (nccn .le. 1) then
    169167
     
    174172! Typical dust radius profile:
    175173  rccn = max(rdust0*exp(-pzlay/18000.),1.e-9)
    176   rice  = qice * 0.75 / pi / rho_ice / nccn + rccn*rccn*rccn
    177        
     174  rice = qice * 0.75 / pi / rho_ice / nccn + rccn*rccn*rccn
     175
    178176  if (rice .le. r3icemin) then
    179177    rice = ricemin
     
    185183
    186184endif
    187  
     185
    188186end subroutine updaterice_typ
    189187!============================================================================
Note: See TracChangeset for help on using the changeset viewer.