Open ecwood opened 2 years ago
I haven't run this kind of policy before but the string cumulative-target-gas
doesn't go in the policy file; I think it's supposed to be a string in the configuration. So, I'd recommend removing that line from the emissions_limit.xml file, and insert the following into the "Strings" section of the configuration:
<Value name="cumulative-target-gas">CO2</Value>
When I use this policy file:
I get the following errors when I run the scenario:
I believe the
Unknown tag
error comes from this code section: https://github.com/JGCRI/gcam-core/blob/f8138153e52b5e875b1775406d2de70868587149/cvs/objects/target_finder/source/policy_target_runner.cpp#L114-L174Then, when
getString
is called in this code snippet https://github.com/JGCRI/gcam-core/blob/8d00382cde133119b0beca9716e8494506a8fc9c/cvs/objects/target_finder/source/cumulative_emissions_target.cpp#L61-L70 it encounters an error with this code: https://github.com/JGCRI/gcam-core/blob/f8138153e52b5e875b1775406d2de70868587149/cvs/objects/util/base/source/configuration.cpp#L284-L297Is this expected behavior? Is there a way to avoid these errors?