Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/datainput.gms
Original file line number Diff line number Diff line change
Expand Up @@ -1527,13 +1527,14 @@ pm_macBaseMagpie(ttot,regi,emiMacMagpie(enty))$(ttot.val ge 2005) = f_macBaseMag
*** pm_macBaseMagpie gets updated in core/presolve.gms when coupling to MAgPIE is active

*** In case of fixing, load p_co2lucSub from input_ref.gdx, since parameters are not automatically treated by the fixing mechanism.
*** Years >= cm_startyear get their values from the lookup table
*** Years >= cm_startyear get their values from the lookup table rather than the input_ref.gdx (see below).
if( (cm_startyear gt 2005),
Execute_Loadpoint "input_ref" p_co2lucSub = p_co2lucSub;
);

*** p_co2lucSub gets updated in core/presolve.gms when coupling to MAgPIE is active
*** Overwrite values >= cm_startyear with lookup table, leave values < cm_startyear untouched (from input_ref.gdx, see above)

*** Overwrite values >= cm_startyear with lookup table, leave values < cm_startyear untouched (from input_ref.gdx, see above).
*** Gets updated for >= cm_startyear in core/presolve.gms when coupling to MAgPIE is active.
p_co2lucSub(ttot,regi,emiMacMagpieCO2Sub(all_enty))$(ttot.val ge cm_startyear) = f_macBaseMagpie(ttot,regi,emiMacMagpieCO2Sub,"%cm_LU_emi_scen%","%cm_rcp_scen%");

*** p_macPolCO2luc defines the lower limit for abatement of CO2 landuse change emissions in REMIND
Expand Down
2 changes: 1 addition & 1 deletion core/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ if (sm_magpieIter gt 0,
*** MAgPIE has run once at least: the start values for pm_macBaseMagpie come from the last MAgPIE iteration
Execute_Loadpoint 'magpieData.gdx' f_macBaseMagpie_coupling;
pm_macBaseMagpie(ttot,regi,emiMacMagpie(enty))$(ttot.val ge 2005) = f_macBaseMagpie_coupling(ttot,regi,emiMacMagpie);
p_co2lucSub(ttot,regi,emiMacMagpieCO2Sub(all_enty))$(ttot.val ge 2005) = f_macBaseMagpie_coupling(ttot,regi,emiMacMagpieCO2Sub);
p_co2lucSub(ttot,regi,emiMacMagpieCO2Sub(all_enty))$(ttot.val ge cm_startyear) = f_macBaseMagpie_coupling(ttot,regi,emiMacMagpieCO2Sub);
*** Biomass emission factor is set to zero after MAgPIE has run at least one, since biomass emissions are included in the emissions imported above.
p_efFossilFuelExtr(regi,"pebiolc","n2obio") = 0.0;
*** In coupling mode LU emissions are abated in MAgPIE (moved here from core/datainput.gms)
Expand Down
Loading