- Timestamp:
- 2021-10-20T18:39:22+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_2_2/ORCHIDEE/src_stomate/stomate_lpj.f90
r6369 r7326 875 875 sum_cVegTree = zero 876 876 877 DO j= 2,nvm877 DO j=1,nvm 878 878 879 879 tot_litter_carb(:,j) = tot_litter_carb(:,j) + (litter(:,istructural,j,iabove,icarbon) + & … … 958 958 CALL xios_orchidee_send_field("LAI",lai) 959 959 CALL xios_orchidee_send_field("VEGET_COV_MAX",veget_cov_max) 960 CALL xios_orchidee_send_field("NPP_STOMATE",npp_daily )961 CALL xios_orchidee_send_field("GPP",gpp_daily )960 CALL xios_orchidee_send_field("NPP_STOMATE",npp_daily+co2_to_bm) 961 CALL xios_orchidee_send_field("GPP",gpp_daily+co2_to_bm) 962 962 CALL xios_orchidee_send_field("IND",ind) 963 963 CALL xios_orchidee_send_field("CN_IND",cn_ind) … … 1053 1053 1054 1054 ! Carbon fluxes transformed from gC/m2/d into kgC/m2/s 1055 CALL xios_orchidee_send_field("gpp_ipcc",SUM( gpp_daily*veget_cov_max,dim=2)/1e3/one_day)1055 CALL xios_orchidee_send_field("gpp_ipcc",SUM((gpp_daily+co2_to_bm)*veget_cov_max,dim=2)/1e3/one_day) 1056 1056 CALL xios_orchidee_send_field("ra",SUM((resp_maint+resp_growth)*veget_cov_max,dim=2)/1e3/one_day) 1057 1057 vartmp(:)=zero … … 1079 1079 CALL xios_orchidee_send_field("raTree",vartmp/1e3/one_day) 1080 1080 1081 CALL xios_orchidee_send_field("npp_ipcc",SUM(npp_daily*veget_cov_max,dim=2)/1e3/one_day) 1081 CALL xios_orchidee_send_field("npp_ipcc",SUM((npp_daily+co2_to_bm)*veget_cov_max,dim=2)/1e3/one_day) 1082 1082 1083 vartmp(:)=zero 1083 1084 DO j = 2, nvm 1084 1085 IF ( .NOT. is_tree(j) .AND. natural(j) ) THEN 1085 vartmp(:) = vartmp(:) + npp_daily(:,j)*veget_cov_max(:,j)1086 vartmp(:) = vartmp(:) +( npp_daily(:,j)+co2_to_bm(:,j))*veget_cov_max(:,j) 1086 1087 ENDIF 1087 1088 ENDDO … … 1090 1091 DO j = 2, nvm 1091 1092 IF ( (.NOT. is_tree(j)) .AND. (.NOT. natural(j)) ) THEN 1092 vartmp(:) = vartmp(:) + npp_daily(:,j)*veget_cov_max(:,j)1093 vartmp(:) = vartmp(:) + (npp_daily(:,j)+co2_to_bm(:,j))*veget_cov_max(:,j) 1093 1094 ENDIF 1094 1095 ENDDO … … 1098 1099 DO j = 2, nvm 1099 1100 IF ( is_tree(j) ) THEN 1100 vartmp(:) = vartmp(:) + npp_daily(:,j)*veget_cov_max(:,j)1101 vartmp(:) = vartmp(:) + (npp_daily(:,j)+co2_to_bm(:,j))*veget_cov_max(:,j) 1101 1102 ENDIF 1102 1103 ENDDO … … 1196 1197 CALL xios_orchidee_send_field("flulccatmlut",flulccatmlut) 1197 1198 1198 ! co2_to_bm is not added as it is already included in gpp 1199 CALL xios_orchidee_send_field("nbp",(SUM((gpp_daily-(resp_maint+resp_growth+resp_hetero)-co2_fire) * & 1199 CALL xios_orchidee_send_field("nbp",(SUM((gpp_daily+co2_to_bm-(resp_maint+resp_growth+resp_hetero)-co2_fire) * & 1200 1200 veget_cov_max,dim=2)-cflux_prod_total-cflux_prod_harvest_total-harvest_above)/1e3/one_day) 1201 1201 CALL xios_orchidee_send_field("fVegLitter",SUM((tot_bm_to_litter(:,:,icarbon) + tot_turnover(:,:,icarbon))*& … … 1267 1267 resp_hetero(:,j)*veget_cov_max(:,j)/1e3/one_day 1268 1268 npplut(:,id_psl) = npplut(:,id_psl) + & 1269 npp_daily(:,j)*veget_cov_max(:,j)/1e3/one_day1269 (npp_daily(:,j)+co2_to_bm(:,j))*veget_cov_max(:,j)/1e3/one_day 1270 1270 ELSE 1271 1271 clitterlut(:,id_crp) = clitterlut(:,id_crp) + tot_litter_carb(:,j)*veget_cov_max(:,j)/1e3 … … 1278 1278 resp_hetero(:,j)*veget_cov_max(:,j)/1e3/one_day 1279 1279 npplut(:,id_crp) = npplut(:,id_crp) + & 1280 npp_daily(:,j)*veget_cov_max(:,j)/1e3/one_day1280 (npp_daily(:,j)+co2_to_bm(:,j))*veget_cov_max(:,j)/1e3/one_day 1281 1281 END IF 1282 1282 END DO … … 1422 1422 veget_cov_max, npts*nvm, horipft_index) 1423 1423 CALL histwrite_p (hist_id_stomate, 'NPP', itime, & 1424 npp_daily , npts*nvm, horipft_index)1424 npp_daily+co2_to_bm, npts*nvm, horipft_index) 1425 1425 CALL histwrite_p (hist_id_stomate, 'GPP', itime, & 1426 gpp_daily , npts*nvm, horipft_index)1426 gpp_daily+co2_to_bm, npts*nvm, horipft_index) 1427 1427 CALL histwrite_p (hist_id_stomate, 'IND', itime, & 1428 1428 ind, npts*nvm, horipft_index) … … 1528 1528 CALL histwrite_p (hist_id_stomate_IPCC, "lai", itime, & 1529 1529 vartmp, npts, hori_index) 1530 vartmp(:)=SUM( gpp_daily*veget_cov_max,dim=2)/1e3/one_day1530 vartmp(:)=SUM((gpp_daily+co2_to_bm)*veget_cov_max,dim=2)/1e3/one_day 1531 1531 CALL histwrite_p (hist_id_stomate_IPCC, "gpp", itime, & 1532 1532 vartmp, npts, hori_index) … … 1534 1534 CALL histwrite_p (hist_id_stomate_IPCC, "ra", itime, & 1535 1535 vartmp, npts, hori_index) 1536 vartmp(:)=SUM( npp_daily*veget_cov_max,dim=2)/1e3/one_day1536 vartmp(:)=SUM((npp_daily+co2_to_bm)*veget_cov_max,dim=2)/1e3/one_day 1537 1537 CALL histwrite_p (hist_id_stomate_IPCC, "npp", itime, & 1538 1538 vartmp, npts, hori_index) … … 1553 1553 vartmp, npts, hori_index) 1554 1554 ! co2_to_bm is not added as it is already included in gpp 1555 vartmp(:)=(SUM((gpp_daily -(resp_maint+resp_growth+resp_hetero)-co2_fire) &1555 vartmp(:)=(SUM((gpp_daily+co2_to_bm-(resp_maint+resp_growth+resp_hetero)-co2_fire) & 1556 1556 & *veget_cov_max,dim=2)-cflux_prod_total-cflux_prod_harvest_total-harvest_above)/1e3/one_day 1557 1557 CALL histwrite_p (hist_id_stomate_IPCC, "nbp", itime, &
Note: See TracChangeset
for help on using the changeset viewer.