Skip to content

Commit

Permalink
Merge pull request #3 from magpiemodel/develop
Browse files Browse the repository at this point in the history
sync my fork
  • Loading branch information
flohump committed Jan 10, 2019
2 parents 3efc8e3 + 00f220e commit 134d598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/14_yields/dynamic_aug18/preloop.gms
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
i14_yields(t,j,kve,w) = f14_yields(t,j,kve,w);

***YIELD CORRECTION FOR 2ND GENERATION BIOENERGY CROPS*************************************
i14_yields(t,j,"begr",w) = i14_yields(t,j,"begr",w)*sum(cell(i,j),fm_tau1995(i))/fm_tau1995("EUR");
i14_yields(t,j,"betr",w) = i14_yields(t,j,"betr",w)*sum(cell(i,j),fm_tau1995(i))/fm_tau1995("EUR");
i14_yields(t,j,"begr",w) = i14_yields(t,j,"begr",w)*sum(cell(i,j),fm_tau1995(i))/smax(i,fm_tau1995(i));
i14_yields(t,j,"betr",w) = i14_yields(t,j,"betr",w)*sum(cell(i,j),fm_tau1995(i))/smax(i,fm_tau1995(i));

***YIELD CORRECTION FOR PASTURE ACCOUNTING FOR REGIONAL DIFFERENCES IN MANAGEMENT***
p14_pyield_LPJ_reg(t,i) = (sum(cell(i,j),i14_yields(t,j,"pasture","rainfed")*pm_land_start(j,"past"))/sum(cell(i,j),pm_land_start(j,"past")) );
Expand Down
2 changes: 1 addition & 1 deletion modules/32_forestry/affore_vegc_dec16/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*** | Contact: magpie@pik-potsdam.de

* Limit demand for prescribed NPI/NDC afforestation in `p32_aff_pol` if not enough suitable area (`p32_aff_pot`) for afforestation is available.
p32_aff_pot(t,j) = pcm_land(j,"crop") + pcm_land(j,"past");
p32_aff_pot(t,j) = (vm_land.l(j,"crop") - vm_land.lo(j,"crop")) + (vm_land.l(j,"past") - vm_land.lo(j,"past"));
if((ord(t) > 1),
p32_aff_pol(t,j)$(p32_aff_pol(t,j) - p32_aff_pol(t-1,j) > p32_aff_pot(t,j)) = p32_aff_pol(t-1,j) + p32_aff_pot(t,j);
);
Expand Down

0 comments on commit 134d598

Please sign in to comment.