Changeset 7326 for branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba
- Timestamp:
- 2021-10-20T18:39:22+02:00 (3 years ago)
- Location:
- branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba/diffuco.f90
r7265 r7326 236 236 & evap_bare_lim, evap_bare_lim_ns, evapot, evapot_corr, snow, flood_frac, flood_res, frac_nobio, snow_nobio, totfrac_nobio, & 237 237 & swnet, swdown, coszang, ccanopy, humrel, veget, veget_max, lai, qsintveg, qsintmax, assim_param, & 238 & vbeta , vbeta1, vbeta2, vbeta3, vbeta3pot, vbeta4, vbeta5, gsmean, rveget, rstruct, cimean, gpp, co2_to_bm,&238 & vbeta , vbeta1, vbeta2, vbeta3, vbeta3pot, vbeta4, vbeta5, gsmean, rveget, rstruct, cimean, gpp, & 239 239 & lalo, neighbours, resolution, ptnlev1, precip_rain, frac_age, tot_bare_soil, frac_snow_veg, frac_snow_nobio, & 240 240 & hist_id, hist2_id) … … 288 288 REAL(r_std),DIMENSION (kjpindex,nvm), INTENT (in) :: qsintmax !! Maximum water on vegetation for interception 289 289 !! (kg m^{-2}) 290 REAL(r_std),DIMENSION (kjpindex,nvm), INTENT (in) :: co2_to_bm !! virtual gpp ((gC m^{-2} dt_sechiba^{-1}), total area)291 290 REAL(r_std),DIMENSION (kjpindex,nvm,npco2), INTENT (in) :: assim_param !! min+max+opt temps, vcmax, vjmax 292 291 !! for photosynthesis (K ??) … … 374 373 veget, veget_max, lai, qsintveg, qsintmax, vbeta3, vbeta3pot, & 375 374 rveget, rstruct, cimean, gsmean, gpp, & 376 co2_to_bm,vbeta23, hist_id, indexveg, indexlai, index, kjit, cim)375 vbeta23, hist_id, indexveg, indexlai, index, kjit, cim) 377 376 378 377 ! … … 1382 1381 veget, veget_max, lai, qsintveg, qsintmax, vbeta3, vbeta3pot, rveget, rstruct, & 1383 1382 cimean, gsmean, gpp, & 1384 co2_to_bm,vbeta23, hist_id, indexveg, indexlai, index, kjit, cim)1383 vbeta23, hist_id, indexveg, indexlai, index, kjit, cim) 1385 1384 1386 1385 ! … … 1425 1424 REAL(r_std),DIMENSION (kjpindex,nvm), INTENT (in) :: vbeta23 !! Beta for fraction of wetted foliage that will 1426 1425 !! transpire (unitless) 1427 REAL(r_std),DIMENSION (kjpindex,nvm), INTENT (in) :: co2_to_bm !! virtual gpp ((gC m^{-2} dt_sechiba ^{-1}), total area)1428 1426 INTEGER(i_std),INTENT (in) :: hist_id !! _History_ file identifier (-) 1429 1427 INTEGER(i_std),DIMENSION (kjpindex*nvm), INTENT (in) :: indexveg !! Indeces of the points on the 3D map (-) … … 2310 2308 ! 2311 2309 END DO ! loop over vegetation types 2312 !2313 2314 ! Add virtual gpp (co2_to_bm) to the gpp.2315 ! Virtual gpp can be created when introducing new pft or for correction of carbon fluxes2316 ! for instance for adjustment of Ra at end of the day.2317 gpp(:,:) = gpp(:,:) + co2_to_bm(:,:)2318 2310 2319 2311 IF (printlev>=3) WRITE (numout,*) ' diffuco_trans_co2 done ' -
branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba/sechiba.f90
r7206 r7326 234 234 REAL(r_std), ALLOCATABLE, SAVE, DIMENSION (:,:) :: co2_flux !! CO2 flux (gC/m**2 of average ground/one_day) 235 235 !$OMP THREADPRIVATE(co2_flux) 236 REAL(r_std), ALLOCATABLE, SAVE, DIMENSION (:,:) :: co2_to_bm !! virtual CO2 flux (gC/m**2 of average ground/s)237 !$OMP THREADPRIVATE(co2_to_bm)238 236 REAL(r_std), ALLOCATABLE, SAVE, DIMENSION (:) :: evapot !! Soil Potential Evaporation 239 237 !$OMP THREADPRIVATE(evapot) … … 459 457 frac_nobio, njsc, veget_max, fraclut, & 460 458 nwdfraclut, tot_bare_soil,totfrac_nobio, qsintmax, & 461 co2_to_bm,temp_growth)459 temp_growth) 462 460 463 461 !! 1.4 Initialize diffusion coefficients … … 727 725 & frac_nobio, snow_nobio, totfrac_nobio, & 728 726 & swnet, swdown, coszang, ccanopy, humrel, veget, veget_max, lai, qsintveg, qsintmax, assim_param, & 729 & vbeta, vbeta1, vbeta2, vbeta3, vbeta3pot, vbeta4, vbeta5, gsmean, rveget, rstruct, cimean, gpp, co2_to_bm,&727 & vbeta, vbeta1, vbeta2, vbeta3, vbeta3pot, vbeta4, vbeta5, gsmean, rveget, rstruct, cimean, gpp, & 730 728 & lalo, neighbours, resolution, ptnlev1, precip_rain, frac_age, tot_bare_soil, frac_snow_veg, frac_snow_nobio, & 731 729 & hist_id, hist2_id) … … 809 807 lai, frac_age, height, veget, frac_nobio, veget_max, totfrac_nobio, qsintmax, & 810 808 rest_id, hist_id, hist2_id, rest_id_stom, hist_id_stom, hist_id_stom_IPCC, & 811 co2_flux, fco2_lu, fco2_wh, fco2_ha, co2_to_bm,temp_growth, tot_bare_soil)809 co2_flux, fco2_lu, fco2_wh, fco2_ha, temp_growth, tot_bare_soil) 812 810 813 811 … … 1400 1398 ks, nvan, avan, mcr, & 1401 1399 mcs, mcfc, mcw, & 1402 co2_to_bm,assim_param, frac_age)1400 assim_param, frac_age) 1403 1401 1404 1402 IF (printlev_loc>=3) WRITE (numout,*) 'sechiba_finalize done' … … 1738 1736 IF (ier /= 0) CALL ipslerr_p(3,'sechiba_init','Pb in alloc for co2_flux','','') 1739 1737 co2_flux(:,:)=zero 1740 1741 ALLOCATE (co2_to_bm(kjpindex,nvm),stat=ier)1742 IF (ier /= 0) CALL ipslerr_p(3,'sechiba_init','Pb in alloc for co2_to_bm','','')1743 1738 1744 1739 ALLOCATE (shumdiag(kjpindex,nslm),stat=ier) … … 1982 1977 IF ( ALLOCATED (stempdiag)) DEALLOCATE (stempdiag) 1983 1978 IF ( ALLOCATED (co2_flux)) DEALLOCATE (co2_flux) 1984 IF ( ALLOCATED (co2_to_bm)) DEALLOCATE (co2_to_bm)1985 1979 IF ( ALLOCATED (shumdiag)) DEALLOCATE (shumdiag) 1986 1980 IF ( ALLOCATED (shumdiag_perma)) DEALLOCATE (shumdiag_perma) -
branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba/slowproc.f90
r7325 r7326 283 283 frac_nobio, njsc, veget_max, fraclut, & 284 284 nwdfraclut, tot_bare_soil,totfrac_nobio, qsintmax, & 285 co2_to_bm,temp_growth)285 temp_growth) 286 286 287 287 !! 0.1 Input variables … … 302 302 303 303 !! 0.2 Output variables 304 REAL(r_std), DIMENSION (kjpindex,nvm), INTENT(out) :: co2_to_bm !! Virtual gpp per average ground area (gC m^{-2} dt_stomate^{-1})305 304 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: temp_growth !! Growth temperature (°C) - Is equal to t2m_month 306 305 INTEGER(i_std), DIMENSION(kjpindex), INTENT(out) :: njsc !! Index of the dominant soil textural class in the grid cell (1-nscm, unitless) … … 365 364 contfrac, totfrac_nobio, clayfraction, temp_air, & 366 365 lai, veget, veget_max, & 367 co2_to_bm, deadleaf_cover, assim_param, temp_growth ) 368 ELSE 369 !! ok_stomate is not activated 370 !! Define the CO2 fluxes to zero (no carbone cycle) 371 co2_to_bm(:,:) = zero 366 deadleaf_cover, assim_param, temp_growth ) 372 367 ENDIF 373 368 … … 447 442 rest_id, hist_id, hist2_id, rest_id_stom, hist_id_stom, hist_id_stom_IPCC, & 448 443 co2_flux, fco2_lu, fco2_wh, fco2_ha, & 449 co2_to_bm,temp_growth, tot_bare_soil)444 temp_growth, tot_bare_soil) 450 445 451 446 !! INTERFACE DESCRIPTION … … 484 479 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: fco2_wh !! CO2 Flux to Atmosphere from Wood Harvesting (gC m^{-2} dt_stomate^{-1}) 485 480 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: fco2_ha !! CO2 Flux to Atmosphere from Crop Harvesting (gC m^{-2} dt_stomate^{-1}) 486 REAL(r_std), DIMENSION (kjpindex,nvm), INTENT(out) :: co2_to_bm !! virtual gpp flux per average ground area (gC m^{-2} dt_stomate^{-1})487 481 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: temp_growth !! Growth temperature (°C) - Is equal to t2m_month 488 482 REAL(r_std), DIMENSION (kjpindex), INTENT(out) :: tot_bare_soil !! Total evaporating bare soil fraction in the mesh … … 595 589 rest_id_stom, hist_id_stom, hist_id_stom_IPCC, & 596 590 co2_flux, fco2_lu, fco2_wh, fco2_ha, & 597 resp_maint, resp_hetero, resp_growth, co2_to_bm,temp_growth)591 resp_maint, resp_hetero, resp_growth, temp_growth) 598 592 599 593 … … 664 658 fco2_wh(:) = zero 665 659 fco2_ha(:) = zero 666 co2_to_bm(:,:) = zero667 660 ENDIF 668 661 … … 746 739 frac_nobio, veget_max, reinf_slope, & 747 740 ks, nvan, avan, mcr, mcs, mcfc, mcw, & 748 co2_to_bm,assim_param, frac_age )741 assim_param, frac_age ) 749 742 750 743 !! 0.1 Input variables … … 768 761 REAL(r_std),DIMENSION (kjpindex), INTENT(in) :: mcfc !! Volumetric water content at field capacity (m^{3} m^{-3}) 769 762 REAL(r_std),DIMENSION (kjpindex), INTENT(in) :: mcw !! Volumetric water content at wilting point (m^{3} m^{-3}) 770 771 REAL(r_std),DIMENSION (kjpindex,nvm),INTENT(in) :: co2_to_bm !! virtual gpp flux between atmosphere and biosphere772 763 REAL(r_std),DIMENSION (kjpindex,nvm,npco2),INTENT (in):: assim_param !! min+max+opt temperatures & vmax for photosynthesis (K, \mumol m^{-2} s^{-1}) 773 764 REAL(r_std),DIMENSION (kjpindex,nvm,nleafages), INTENT(in):: frac_age !! Age efficacity from STOMATE for isoprene … … 842 833 ! 2.2 Write restart variables managed by STOMATE 843 834 IF ( ok_stomate ) THEN 844 CALL stomate_finalize (kjit, kjpindex, indexLand, clayfraction, co2_to_bm,assim_param)835 CALL stomate_finalize (kjit, kjpindex, indexLand, clayfraction, assim_param) 845 836 ENDIF 846 837
Note: See TracChangeset
for help on using the changeset viewer.