Ignore:
Timestamp:
Nov 22, 2023, 3:46:17 PM (6 months ago)
Author:
lebasn
Message:

Methox: Update comments to correct units + bugfix on output variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/StratAer/stratH2O_methox.F90

    r4626 r4755  
    44SUBROUTINE stratH2O_methox(debutphy,paprs,dq_ch4mmr)
    55!
    6 ! output: CH4VMR in mmr (mass mixing ratio/sec: kg H2O/kg air)
     6! output: CH4VMR in MMR/s (mass mixing ratio/s or kg H2O/kg air/s)
    77
    88  USE netcdf95, ONLY: nf95_close, nf95_gw_var, nf95_inq_dimid, &
     
    2626  include "dimensions.h"
    2727 
    28 ! Variable input
     28! Input variables
    2929  REAL paprs(klon,klev+1)
    30   LOGICAL, INTENT(IN) :: debutphy   ! le flag de l'initialisation de la physique
    31 ! Variable output
    32 ! tendance buffer pour appel de add_phys_tend
     30  LOGICAL, INTENT(IN) :: debutphy   ! flag for first physiq step
     31! Output variables
     32! tendency buffer used in add_phys_tend subroutine (in physiq_mod)
    3333  REAL, INTENT(INOUT), DIMENSION(klon,klev)  :: dq_ch4mmr
    3434 
    35 ! Variables locales
     35! Local variables
    3636  INTEGER n_lat   ! number of latitudes in the input data
    3737  INTEGER n_lon   ! number of longitudes in the input data
     
    4242!$OMP THREADPRIVATE(mth_pre)
    4343 
    44 ! Champs reconstitues
     44! Reconstitutes fields
    4545  REAL paprs_glo(klon_glo,klev+1)
    4646 
     
    5454! levels of input data
    5555 
    56 !stratospheric H2O source from CH4 oxidation
    57 ! fixed climatos
    58 ! H2O production in VMR/sec)
     56! Stratospheric H2O source from CH4 oxidation from fixed climatos
     57! (H2O production in VMR/sec)
    5958  REAL, ALLOCATABLE :: CH4RVMR_in(:, :, :, :)
    6059  REAL, ALLOCATABLE :: CH4RVMR_mth(:, :, :)
     
    122121        !---correct latitudinal order,convert input from volume mixing ratio to mass mixing ratio
    123122        DO j=1,n_lat
    124            ! convert VMR/sec in mmr (mass mixing ratio/sec: kg H2O/kg air)
     123           ! convert VMR/s in MMR/s (mass mixing ratio/s or kg H2O/kg air/s)
    125124           ! x2 because CH4->2*H2O
    126125           CH4RVMR_mth(:,j,:) = 2*CH4RVMR_in(:,n_lat+1-j,:,mth_cur)*mH2Omol/mAIRmol
Note: See TracChangeset for help on using the changeset viewer.