Skip to content
Snippets Groups Projects
Commit a43bac58 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

preprocessor: bug fix; warning should be issued if there is at least one...

preprocessor: bug fix; warning should be issued if there is at least one unused exo not more than one
parent 2a108ba3
Branches
Tags
No related merge requests found
...@@ -290,7 +290,7 @@ ModFile::checkPass() ...@@ -290,7 +290,7 @@ ModFile::checkPass()
// Check if some exogenous is not used in the model block // Check if some exogenous is not used in the model block
set<int> unusedExo = dynamic_model.findUnusedExogenous(); set<int> unusedExo = dynamic_model.findUnusedExogenous();
if (unusedExo.size() > 1) if (unusedExo.size() > 0)
{ {
warnings << "WARNING: some exogenous ("; warnings << "WARNING: some exogenous (";
for (set<int>::const_iterator it = unusedExo.begin(); for (set<int>::const_iterator it = unusedExo.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment