Changeset 3019
- Timestamp:
- Jul 28, 2023, 7:08:13 PM (16 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/pem.F90
r3002 r3019 48 48 use dimradmars_mod, only: totcloudfrac, albedo 49 49 use dust_param_mod, only: tauscaling 50 use tracer_mod, only: noms,igcm_h2o_ice,igcm_co2 ! tracer names50 use tracer_mod, only: noms,igcm_h2o_ice,igcm_co2,mmol,igcm_h2o_vap ! tracer names and molar masses 51 51 #else 52 52 ! 1b: Modules specific from the Generic physiq … … 83 83 major_slope,ini_comslope_h 84 84 85 #ifndef CPP_STD 86 USE comcstfi_h, only: r, mugaz 87 #else 88 USE comcstfi_mod, only: r, mugaz 89 #endif 85 90 86 91 USE logic_mod, ONLY: iflag_phys 87 92 USE mod_const_mpi, ONLY: COMM_LMDZ 88 93 use time_phylmdz_mod, only: daysec,dtphys 89 USE comconst_mod, ONLY: rad,g, r,cpp,pi94 USE comconst_mod, ONLY: rad,g,cpp,pi 90 95 USE infotrac 91 96 USE geometry_mod, only: latitude_deg … … 517 522 #endif 518 523 519 DO nnq=1,nqtot 524 DO nnq=1,nqtot ! Why not using ini_tracer ? 520 525 if(noms(nnq).eq."h2o_ice") igcm_h2o_ice = nnq 526 if(noms(nnq).eq."h2o_vap") then 527 igcm_h2o_vap = nnq 528 mmol(igcm_h2o_vap)=18. 529 endif 521 530 if(noms(nnq).eq."co2") igcm_co2 = nnq 522 531 ENDDO … … 1058 1067 do ig = 1,ngrid 1059 1068 do isoil = 1,nsoilmx_PEM 1060 watersoil_density_PEM_timeseries(ig,isoil,islope,t) = exp(beta_clap_h2o/Tsoil_locslope(ig,isoil) + alpha_clap_h2o)/Tsoil_locslope(ig,isoil) 1069 watersoil_density_PEM_timeseries(ig,isoil,islope,t) = exp(beta_clap_h2o/Tsoil_locslope(ig,isoil) + alpha_clap_h2o)/Tsoil_locslope(ig,isoil)*mmol(igcm_h2o_vap)/(mugaz*r) 1061 1070 if(isnan(Tsoil_locslope(ig,isoil))) then 1062 1071 call abort_pem("PEM - Update Tsoil","NAN detected in Tsoil ",1) … … 1089 1098 tsoil_PEM,TI_PEM,ps_timeseries,q_co2_PEM_phys,q_h2o_PEM_phys, & 1090 1099 h2o_adsorbded_phys,delta_h2o_adsorbded,co2_adsorbded_phys,delta_co2_adsorbded) 1091 endif 1100 1101 1102 totmassco2_adsorbded = 0. 1103 totmassh2o_adsorbded = 0. 1104 do ig = 1,ngrid 1105 do islope =1, nslope 1106 do l = 1,nsoilmx_PEM - 1 1107 totmassco2_adsorbded = totmassco2_adsorbded + co2_adsorbded_phys(ig,l,islope)*(layer_PEM(l+1) - layer_PEM(l))* & 1108 subslope_dist(ig,islope)/cos(pi*def_slope_mean(islope)/180.) * & 1109 cell_area(ig) 1110 totmassh2o_adsorbded = totmassh2o_adsorbded + h2o_adsorbded_phys(ig,l,islope)*(layer_PEM(l+1) - layer_PEM(l))* & 1111 subslope_dist(ig,islope)/cos(pi*def_slope_mean(islope)/180.) * & 1112 cell_area(ig) 1113 enddo 1114 enddo 1115 enddo 1116 write(*,*) "Tot mass of CO2 in the regolith=", totmassco2_adsorbded 1117 write(*,*) "Tot mass of H2O in the regolith=", totmassh2o_adsorbded 1118 endif 1092 1119 endif !soil_pem 1093 1120 -
trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
r2985 r3019 13 13 TI_breccia,TI_bedrock 14 14 use soil_thermalproperties_mod, only: update_soil_thermalproperties 15 use tracer_mod, only: mmol,igcm_h2o_vap ! tracer names and molar masses 16 17 #ifndef CPP_STD 18 USE comcstfi_h, only: r, mugaz 19 #else 20 USE comcstfi_mod, only: r, mugaz 21 #endif 22 23 15 24 #ifndef CPP_STD 16 25 use surfdat_h, only: watercaptag … … 248 257 do isoil = nsoil_GCM+1,nsoil_PEM 249 258 do ig = 1,ngrid 250 watersoil_ave(ig,isoil,islope) = exp(beta_clap_h2o/tsoil_PEM(ig,isoil,islope) + alpha_clap_h2o)/tsoil_PEM(ig,isoil,islope) 259 watersoil_ave(ig,isoil,islope) = exp(beta_clap_h2o/tsoil_PEM(ig,isoil,islope) + alpha_clap_h2o)/tsoil_PEM(ig,isoil,islope)*mmol(igcm_h2o_vap)/(mugaz*r) 251 260 enddo 252 261 enddo … … 446 455 do it = 1,timelen 447 456 do isoil = nsoil_GCM+1,nsoil_PEM 448 tsoil_inst(:,isoil,islope,it) = tsoil_PEM(:,isoil,islope)457 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_ave_yr2(:,islope),tsoil_inst(:,:,islope,it)) 449 458 enddo 450 459 enddo … … 452 461 do isoil = nsoil_GCM+1,nsoil_PEM 453 462 do ig = 1,ngrid 454 watersoil_ave(ig,isoil,islope) = exp(beta_clap_h2o/tsoil_PEM(ig,isoil,islope) + alpha_clap_h2o)/tsoil_PEM(ig,isoil,islope) 463 watersoil_ave(ig,isoil,islope) = exp(beta_clap_h2o/tsoil_PEM(ig,isoil,islope) + alpha_clap_h2o)/tsoil_PEM(ig,isoil,islope)*mmol(igcm_h2o_vap)/(mugaz*r) 455 464 enddo 456 465 enddo
Note: See TracChangeset
for help on using the changeset viewer.