Commit deb77be8 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug.

Preprocessor was not returning an error when some of the exogenous
variables were not used in the model.
parent 84c6bf5d
......@@ -4264,9 +4264,7 @@ DynamicModel::findUnusedExogenous()
set<int> usedExo, unusedExo, unobservedExo;
for (int i = 0; i < (int) equations.size(); i++)
equations[i]->collectVariables(eExogenous, usedExo);
for (int i = 0; i < (int) equations.size(); i++)
equations[i]->collectVariables(eExogenous, usedExo);
set<int> observedExo = symbol_table.getExogenous();
set<int> observedExo = symbol_table.getObservedExogenous();
set<int> allExo = symbol_table.getExogenous();
set_difference(allExo.begin(), allExo.end(),
observedExo.begin(), observedExo.end(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment