OSeMOSYS / OSeMOSYS_GNU_MathProg

The GNU MathProg implementation of OSeMOSYS
Apache License 2.0
9 stars 14 forks source link

Fixed issue with writing emission sets #69

Closed willu47 closed 3 years ago

willu47 commented 3 years ago

Addresses #68.

Apologies for the whitespace changes.

Main change is in line 240 which adds the information from an EmissionActivityRatio entry to data_all. This ensures that the subsets for MODExTECHNOLOGYperEMISSION are generated.

I used a minimal input file to test this:

param default 0.0 : EmissionActivityRatio :=
REGION NENG00ILGX NECO2 1 2019 0.0503006546999384
;

set TECHNOLOGY :=
NENG00ILGX
;

set YEAR :=
2019
;

end;

Which produced the following appended to the above:

set MODEperTECHNOLOGY[NENG00ILGX]:= 1;
end;
abhishek0208 commented 3 years ago

Looks good, thanks @willu47!