preprocessor: bug fix; warning should be issued if there is at least one unused exo not more than one

issue#70
Houtan Bastani 2015-03-06 09:49:11 +01:00
parent 2a108ba38f
commit a43bac5842
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ ModFile::checkPass()
// Check if some exogenous is not used in the model block
set<int> unusedExo = dynamic_model.findUnusedExogenous();
if (unusedExo.size() > 1)
if (unusedExo.size() > 0)
{
warnings << "WARNING: some exogenous (";
for (set<int>::const_iterator it = unusedExo.begin();