Ignore:
Timestamp:
2011-06-23T11:25:25+02:00 (13 years ago)
Author:
didier.solyga
Message:

Update the externalized version with the last commit of the trunk (revision 275)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/sechiba.f90

    r257 r277  
    44!! 
    55!! @author Marie-Alice Foujols and Jan Polcher 
    6 !! @Version : $Revision: 45 $, $Date: 2011-01-01 21:30:44 +0100 (Sat, 01 Jan 2011) $ 
     6!! @Version : $Revision: 275 $, $Date: 2011-06-21 15:28:18 +0200 (Tue, 21 Jun 2011) $ 
    77!!  
    88!< $HeadURL: http://forge.ipsl.jussieu.fr/orchidee/svn/trunk/ORCHIDEE/src_sechiba/sechiba.f90 $ 
    9 !< $Date: 2011-01-01 21:30:44 +0100 (Sat, 01 Jan 2011) $ 
    10 !< $Author: mmaipsl $ 
    11 !< $Revision: 45 $ 
     9!< $Date: 2011-06-21 15:28:18 +0200 (Tue, 21 Jun 2011) $ 
     10!< $Author: martial.mancip $ 
     11!< $Revision: 275 $ 
    1212!! IPSL (2006) 
    1313!!  This software is governed by the CeCILL licence see ORCHIDEE/ORCHIDEE_CeCILL.LIC 
     
    186186    & precip_rain, precip_snow, lwdown, swnet, swdown, pb, & 
    187187         ! Output : Fluxes 
    188     & vevapp, fluxsens, fluxlat, coastalflow, riverflow, & 
     188    & vevapp, fluxsens, fluxlat, coastalflow, riverflow, netco2flux, fco2_lu, & 
    189189         ! Surface temperatures and surface properties 
    190190    & tsol_rad, temp_sol_new, qsurf_out, albedo_out, emis_out, z0_out, & 
     
    249249    REAL(r_std),DIMENSION (kjpindex), INTENT (out)           :: fluxlat          !! Latent chaleur flux 
    250250    REAL(r_std),DIMENSION (kjpindex), INTENT (out)           :: emis_out         !! Emissivity 
     251    REAL(r_std),DIMENSION (kjpindex), INTENT (out)           :: netco2flux       !! Sum CO2 flux over PFTs (gC/m**2 of average ground/s) 
     252    REAL(r_std),DIMENSION (kjpindex), INTENT (out)           :: fco2_lu          !! Land Cover Change CO2 flux (gC/m**2 of average ground/s) 
    251253 
    252254    REAL(r_std), ALLOCATABLE, DIMENSION (:)                  :: runoff1,drainage1, soilcap1,soilflx1 
     
    322324            lai, height, veget, frac_nobio, veget_max, totfrac_nobio, qsintmax, & 
    323325            rest_id, hist_id, hist2_id, rest_id_stom, hist_id_stom, hist_id_stom_IPCC, & 
    324             co2_flux) 
     326            co2_flux, fco2_lu) 
     327       netco2flux(:) = zero 
     328       DO jv = 2,nvm 
     329          netco2flux(:) = netco2flux(:) + co2_flux(:,jv)*veget_max(:,jv) 
     330       ENDDO 
    325331       !  
    326332       ! computes initialisation of diffusion coeff 
     
    570576         lai, height, veget, frac_nobio, veget_max, totfrac_nobio, qsintmax, & 
    571577         rest_id, hist_id, hist2_id, rest_id_stom, hist_id_stom, hist_id_stom_IPCC, & 
    572          co2_flux) 
    573  
     578         co2_flux, fco2_lu) 
     579    ! 
     580    ! Compute global CO2 flux 
     581    ! 
     582    netco2flux(:) = zero 
     583    DO jv = 2,nvm 
     584       netco2flux(:) = netco2flux(:) + co2_flux(:,jv)*veget_max(:,jv) 
     585    ENDDO 
    574586    ! 
    575587    ! call swap from new computed variables   
     
    831843            lai, height, veget, frac_nobio, veget_max, totfrac_nobio, qsintmax, & 
    832844            rest_id, hist_id, hist2_id, rest_id_stom, hist_id_stom, hist_id_stom_IPCC, & 
    833             co2_flux) 
    834  
     845            co2_flux, fco2_lu) 
     846       netco2flux(:) = zero 
     847       DO jv = 2,nvm 
     848          netco2flux(:) = netco2flux(:) + co2_flux(:,jv)*veget_max(:,jv) 
     849       ENDDO 
    835850 
    836851       var_name= 'shumdiag'   
Note: See TracChangeset for help on using the changeset viewer.