Changeset 3453 for LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90
- Timestamp:
- Jan 28, 2019, 7:31:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90
r3450 r3453 12 12 USE infotrac_phy 13 13 USE geometry_mod, ONLY: cell_area 14 USE carbon_cycle_mod, ONLY: id_CO2, nbcf_in, fields_in, cfname_in, fco2_ocn_day, fco2_ff, fco2_bb 14 USE carbon_cycle_mod, ONLY: id_CO2, nbcf_in, fields_in, cfname_in 15 USE carbon_cycle_mod, ONLY: fco2_ocn_day, fco2_ff, fco2_bb, fco2_land, fco2_ocean 15 16 USE carbon_cycle_mod, ONLY: carbon_cycle_tr, carbon_cycle_rad, RCO2_glo, RCO2_tot 16 17 USE mod_grid_phy_lmdz … … 50 51 INTEGER :: it, k, i, nb 51 52 REAL, DIMENSION(klon,klev) :: m_air ! mass of air in every grid box [kg] 52 REAL, DIMENSION(klon) :: co2land ! surface land CO2 emissions [kg CO2/m2/s]53 REAL, DIMENSION(klon) :: co2ocean ! surface ocean CO2 emissions [kg CO2/m2/s]54 53 REAL, DIMENSION(klon_glo,klev) :: co2_glo ! variable temporaire sur la grille global 55 54 REAL, DIMENSION(klon_glo,klev) :: m_air_glo ! variable temporaire sur la grille global … … 85 84 86 85 !--retrieving land and ocean CO2 flux 87 co2land(:)=0.088 co2ocean(:)=0.086 fco2_land(:)=0.0 87 fco2_ocean(:)=0.0 89 88 DO nb=1, nbcf_in 90 89 !--fCO2_nep comes in unit of kg C m-2 s-1 91 90 !--converting to kg CO2 m-2 s-1 92 IF (cfname_in(nb) == "fCO2_nep" ) co2land(:)=fields_in(:,nb)*RMCO2/RMC*pctsrf(:,is_ter)91 IF (cfname_in(nb) == "fCO2_nep" ) fco2_land(:)=fields_in(:,nb)*RMCO2/RMC*pctsrf(:,is_ter) 93 92 !--fCO2_fgco2 comes in unit of mol C02 m-2 s-1 94 93 !--converting to kg CO2 m-2 s-1 + change sign 95 IF (cfname_in(nb) == "fCO2_fgco2" ) co2ocean(:)=-1.*fco2_ocn_day(:)*RMCO2/1.e3*(pctsrf(:,is_oce)+pctsrf(:,is_sic))94 IF (cfname_in(nb) == "fCO2_fgco2" ) fco2_ocean(:)=-1.*fco2_ocn_day(:)*RMCO2/1.e3*(pctsrf(:,is_oce)+pctsrf(:,is_sic)) 96 95 ENDDO 97 96 98 !--preparing the net anthropogenic flux at the surface for mixing layer 97 !--preparing the net anthropogenic flux at the surface for mixing layer 99 98 !--unit kg CO2 / m2 / s 100 source(:,id_CO2)=fco2_ff(:)+fco2_bb(:)+ co2land(:)+co2ocean(:)99 source(:,id_CO2)=fco2_ff(:)+fco2_bb(:)+fco2_land(:)+fco2_ocean(:) 101 100 102 101 !--computing global mean CO2 for radiation
Note: See TracChangeset
for help on using the changeset viewer.