Changeset 3972 for trunk/LMDZ.PLUTO/libf


Ignore:
Timestamp:
Nov 21, 2025, 2:57:40 PM (3 weeks ago)
Author:
tbertrand
Message:

PLUTO PCM:
Fixing bug in ch4clouds
TB

File:
1 edited

Legend:

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

    r3948 r3972  
    55
    66      use comgeomfi_h
    7       use comcstfi_mod, only: pi, g, cpp
     7      use comcstfi_mod, only: pi, g, cpp, r
    88      use tracer_h, only: igcm_ch4_gas, igcm_ch4_ice, &
    99             rho_ch4_ice,lw_ch4,micro_indx
     
    7575      REAL zqsat(ngrid,nlay)    ! saturation
    7676      REAL zt(ngrid,nlay)       ! local value of temperature
     77      !REAL rho(ngrid,nlay)       ! local value of atm density
    7778      REAL nmix(ngrid,nlay)     ! Profil of Nmix
    7879
     
    140141      zq(:,:,i_ice)=pq(:,:,i_ice)+pdq(:,:,i_ice)*ptimestep
    141142
     143      !rho(:,:)=pplay(:,:)/(r*zt(:,:))
     144      ! microphysics tracers are in particle/kg
    142145      if (callmufi) then
    143146        zq(:,:,micro_indx(1))=pq(:,:,micro_indx(1))+ &
     
    162165      endif
    163166
    164       pdqscloud(1:ngrid,1:nq)=0
    165       pdqcloud(1:ngrid,1:nlay,1:nq)=0
    166       pdtcloud(1:ngrid,1:nlay)=0
     167      pdqscloud(1:ngrid,1:nq)=0.
     168      pdqcloud(1:ngrid,1:nlay,1:nq)=0.
     169      pdtcloud(1:ngrid,1:nlay)=0.
    167170
    168171      ! Nmix profile
    169172      if (callmufi) then
    170          nmix(:,:)=zq(ig,l,micro_indx(1))+zq(ig,l,micro_indx(3))
     173        nmix(:,:)=zq(:,:,micro_indx(1))+zq(:,:,micro_indx(3))
    171174      else
    172          nmix(:,:)=Nmix_ch4
     175        nmix(:,:)=Nmix_ch4
    173176      endif
    174 
    175177!    ----------------------------------------------
    176178!
Note: See TracChangeset for help on using the changeset viewer.