Ignore:
Timestamp:
Jul 1, 2018, 5:07:48 PM (7 years ago)
Author:
jvatant
Message:

+ Add surface methane CH4 flux pseudo-evap diagnostic and include it in bottom layer zdqcond as >0.
+ minor cosmetic changes in gptitan.c
--JVO

File:
1 edited

Legend:

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

    r1947 r1956  
    387387      real temp_eq(nlayer), press_eq(nlayer) ! Planetary averages for the init. of saturation profiles (K,mbar)
    388388
    389       ! Surface methane tank
    390       real,dimension(:),allocatable,save :: tankCH4 ! Depth of surface methane tank (m)
    391 !$OMP THREADPRIVATE(tankCH4)
     389      ! Surface methane
     390      real, dimension(:), allocatable, save :: tankCH4    ! Depth of surface methane tank (m)
     391      real, dimension(:), allocatable, save :: zdyevapCH4 ! Surface pseudo-evaporation flux (chemistry keeping constant surface humidity) (mol/mol/s).
     392!$OMP THREADPRIVATE(tankCH4,zdyevapCH4)
    392393
    393394      ! -----******----- FOR MUPHYS OPTICS -----******-----
     
    522523            allocate(dycchi(ngrid,nlayer,nkim)) ! only for chemical tracers
    523524            allocate(qysat(nlayer,nkim))
     525            allocate(zdyevapCH4(ngrid))
    524526           
    525527            ! Chemistry timestep
     
    11991201                 ! Here we send zonal average fields ( corrected with cond ) from dynamics to chem. module
    12001202                 call calchim(ngrid,ychimbar,declin,ctimestep,ztfibar,zphibar,  &
    1201                               zplaybar,zplevbar,zzlaybar,zzlevbar,dycchi)
     1203                              zplaybar,zplevbar,zzlaybar,zzlevbar,dycchi,zdyevapCH4)
    12021204               else ! 3D chemistry (or 1D run)
    12031205                 call calchim(ngrid,ychim,declin,ctimestep,pt,pphi,  &
    1204                               pplay,pplev,zzlay,zzlev,dycchi)
     1206                              pplay,pplev,zzlay,zzlev,dycchi,zdyevapCH4)
    12051207               endif ! if moyzon
    12061208
    12071209            endif
     1210           
     1211            ! Add diagnostic-only surface pseudo-evapoaration in condensation tendency for bottom layer
     1212            zdqcond(:,1,chimi_indx(7)) = zdyevapCH4(:)*rat_mmol(chimi_indx(7))
    12081213           
    12091214            do iq=1,nkim
     
    15591564             call writediagfi(ngrid,cnames(iq),cnames(iq),'mol/mol',3,zq(:,:,iq+nmicro)/rat_mmol(iq+nmicro))
    15601565           enddo
     1566           call writediagfi(ngrid,"fluxCH4","Surface CH4 pseudo-evaporation",'mol/mol/s',2,zdyevapCH4)
    15611567         endif
    15621568
Note: See TracChangeset for help on using the changeset viewer.