Ignore:
Timestamp:
Feb 5, 2026, 5:50:37 PM (3 weeks ago)
Author:
aslmd
Message:

Titan PCM:

  • add possibility to release latent heat to the atmosphere due to gases condensation.
  • correct sign error on temperature tendency due to latent heat release in phytitan/cond_muphy.F90
  • add latent heat release flag in callphys.def ("latent_heat" : .true. or .false.).

EMo

File:
1 edited

Legend:

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

    r4046 r4047  
    196196      real,intent(in) :: pv(ngrid,nlayer)      ! Meridional wind component (m/s).
    197197      real,intent(in) :: pt(ngrid,nlayer)      ! Temperature (K).
    198       real,intent(in) :: pq(ngrid,nlayer,nq)   ! Tracers (kg/kg_of_air).
     198      real,intent(in) :: pq(ngrid,nlayer,nq)   ! Tracers (X/kg_of_air). (X is kg or nothing (number of particles))
    199199      real,intent(in) :: flxw(ngrid,nlayer)    ! Vertical mass flux (ks/s) at lower boundary of layer
    200200
     
    431431
    432432        ! Allocate saved arrays (except for 1D model, where this has already been done)
     433        ! For mesoscale it is done in the interface
    433434#ifndef MESOSCALE
    434435        if (ngrid>1) call phys_state_var_init(nq)
     
    11771178               enddo
    11781179               call cond_muphy(ngrid,nlayer,pt,dmuficond,zdtlc)
    1179                !pdt(:,:) = pdt(:,:) + zdtlc(:,:)
     1180               if (latent_heat) then
     1181                  pdt(:,:) = pdt(:,:) + zdtlc(:,:)
     1182               endif
    11801183            endif
    11811184         endif ! callmufi
Note: See TracChangeset for help on using the changeset viewer.