Ignore:
Timestamp:
Jan 28, 2019, 7:31:11 PM (5 years ago)
Author:
oboucher
Message:

Adding some diagnostics for type_trac=co2i

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90

    r3450 r3453  
    1212    USE infotrac_phy
    1313    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
    1516    USE carbon_cycle_mod, ONLY: carbon_cycle_tr, carbon_cycle_rad, RCO2_glo, RCO2_tot
    1617    USE mod_grid_phy_lmdz
     
    5051    INTEGER                        :: it, k, i, nb
    5152    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]
    5453    REAL, DIMENSION(klon_glo,klev) :: co2_glo   ! variable temporaire sur la grille global
    5554    REAL, DIMENSION(klon_glo,klev) :: m_air_glo ! variable temporaire sur la grille global
     
    8584
    8685!--retrieving land and ocean CO2 flux
    87     co2land(:)=0.0
    88     co2ocean(:)=0.0
     86    fco2_land(:)=0.0
     87    fco2_ocean(:)=0.0
    8988    DO nb=1, nbcf_in
    9089!--fCO2_nep comes in unit of kg C m-2 s-1
    9190!--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)
    9392!--fCO2_fgco2 comes in unit of mol C02 m-2 s-1
    9493!--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))
    9695    ENDDO
    9796
    98 !--preparing the net anthropogenic flux at the surface for mixing layer 
     97!--preparing the net anthropogenic flux at the surface for mixing layer
    9998!--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(:)
    101100
    102101!--computing global mean CO2 for radiation
Note: See TracChangeset for help on using the changeset viewer.