Skip to content
Snippets Groups Projects
Commit c8221cac 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

(cherry picked from commit 9ab6be89)
parent 2a0aeb6a
No related branches found
Tags
No related merge requests found
...@@ -289,7 +289,7 @@ ModFile::checkPass() ...@@ -289,7 +289,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