- Timestamp:
- Nov 22, 2023, 3:46:17 PM (13 months ago)
- Location:
- LMDZ6/trunk/libf
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/StratAer/stratH2O_methox.F90
r4626 r4755 4 4 SUBROUTINE stratH2O_methox(debutphy,paprs,dq_ch4mmr) 5 5 ! 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) 7 7 8 8 USE netcdf95, ONLY: nf95_close, nf95_gw_var, nf95_inq_dimid, & … … 26 26 include "dimensions.h" 27 27 28 ! Variable input28 ! Input variables 29 29 REAL paprs(klon,klev+1) 30 LOGICAL, INTENT(IN) :: debutphy ! le flag de l'initialisation de la physique31 ! Variable output32 ! tend ance buffer pour appel de add_phys_tend30 LOGICAL, INTENT(IN) :: debutphy ! flag for first physiq step 31 ! Output variables 32 ! tendency buffer used in add_phys_tend subroutine (in physiq_mod) 33 33 REAL, INTENT(INOUT), DIMENSION(klon,klev) :: dq_ch4mmr 34 34 35 ! Variables locales35 ! Local variables 36 36 INTEGER n_lat ! number of latitudes in the input data 37 37 INTEGER n_lon ! number of longitudes in the input data … … 42 42 !$OMP THREADPRIVATE(mth_pre) 43 43 44 ! Champs reconstitues44 ! Reconstitutes fields 45 45 REAL paprs_glo(klon_glo,klev+1) 46 46 … … 54 54 ! levels of input data 55 55 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) 59 58 REAL, ALLOCATABLE :: CH4RVMR_in(:, :, :, :) 60 59 REAL, ALLOCATABLE :: CH4RVMR_mth(:, :, :) … … 122 121 !---correct latitudinal order,convert input from volume mixing ratio to mass mixing ratio 123 122 DO j=1,n_lat 124 ! convert VMR/s ec 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) 125 124 ! x2 because CH4->2*H2O 126 125 CH4RVMR_mth(:,j,:) = 2*CH4RVMR_in(:,n_lat+1-j,:,mth_cur)*mH2Omol/mAIRmol -
LMDZ6/trunk/libf/phylmd/phys_output_write_mod.F90
r4737 r4755 2260 2260 2261 2261 IF (ok_qch4) THEN 2262 IF (vars_defined) zx_tmp_fi3d=d_q_ch4 / pdtphys2262 IF (vars_defined) zx_tmp_fi3d=d_q_ch4 2263 2263 CALL histwrite_phy(o_dqch4, zx_tmp_fi3d) 2264 2264 ENDIF -
LMDZ6/trunk/libf/phylmd/physiq_mod.F90
r4745 r4755 5025 5025 !DC Calcul de la tendance due au methane 5026 5026 IF (ok_qch4) THEN 5027 ! d_q_ch4: H2O source in ppmv/sec5027 ! d_q_ch4: H2O source from CH4 in MMR/s (mass mixing ratio/s or kg H2O/kg air/s) 5028 5028 #ifdef CPP_StratAer 5029 5029 CALL stratH2O_methox(debut,paprs,d_q_ch4) 5030 5030 #else 5031 ! ecmwfroutine METHOX5031 ! ECMWF routine METHOX 5032 5032 CALL METHOX(1,klon,klon,klev,q_seri,d_q_ch4,pplay) 5033 5033 #endif 5034 ! a jout de la tendance d'humidite due aumethane5034 ! add humidity tendency due to methane 5035 5035 d_q_ch4_dtime(:,:) = d_q_ch4(:,:)*phys_tstep 5036 5036 CALL add_phys_tend(du0, dv0, dt0, d_q_ch4_dtime, dql0, dqi0, dqbs0, paprs, & 5037 5037 'q_ch4', abortphy,flag_inhib_tend,itap,0) 5038 d_q_ch4(:,:) = d_q_ch4_dtime(:,:)/phys_tstep 5038 d_q_ch4(:,:) = d_q_ch4_dtime(:,:)/phys_tstep ! update with H2O conserv done in add_phys_tend 5039 5039 ENDIF 5040 5040 ! … … 5050 5050 5051 5051 SELECT CASE(flag_emit) 5052 CASE(1) ! emission volc H2O dansLMDZ5052 CASE(1) ! emission volc H2O in LMDZ 5053 5053 DO ieru=1, nErupt 5054 5054 IF (year_cur==year_emit_vol(ieru).AND.& … … 5058 5058 5059 5059 IF(flag_verbose_strataer) print *,'IN physiq_mod: date=',year_cur,mth_cur,day_cur 5060 ! initialisation tendance qemission5060 ! initialisation of q tendency emission 5061 5061 d_q_emiss(:,:)=0. 5062 5062 ! daily injection mass emission - NL -
LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90
r4745 r4755 6196 6196 !DC Calcul de la tendance due au methane 6197 6197 IF (ok_qch4) THEN 6198 ! d_q_ch4: H2O source in ppmv/sec6198 ! d_q_ch4: H2O source from CH4 in MMR/s (mass mixing ratio/s or kg H2O/kg air/s) 6199 6199 #ifdef CPP_StratAer 6200 6200 CALL stratH2O_methox(debut,paprs,d_q_ch4) 6201 6201 #else 6202 ! ecmwfroutine METHOX6202 ! ECMWF routine METHOX 6203 6203 CALL METHOX(1,klon,klon,klev,q_seri,d_q_ch4,pplay) 6204 6204 #endif 6205 ! a jout de la tendance d'humidite due aumethane6205 ! add humidity tendency due to methane 6206 6206 d_q_ch4_dtime(:,:) = d_q_ch4(:,:)*phys_tstep 6207 6207 #ifdef ISO … … 6214 6214 #endif 6215 6215 & ) 6216 d_q_ch4(:,:) = d_q_ch4_dtime(:,:)/phys_tstep 6217 #ifdef ISO 6218 d_xt_ch4(:,:,:) = d_xt_ch4_dtime(:,:,:)/phys_tstep 6216 d_q_ch4(:,:) = d_q_ch4_dtime(:,:)/phys_tstep ! update with H2O conserv done in add_phys_tend 6217 #ifdef ISO 6218 d_xt_ch4(:,:,:) = d_xt_ch4_dtime(:,:,:)/phys_tstep ! update with H2O conserv done in add_phys_tend 6219 6219 #endif 6220 6220 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.