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

epilogue: output endogs used in epilogue equations

#36
parent 41d38551
No related branches found
No related tags found
No related merge requests found
......@@ -427,4 +427,13 @@ Epilogue::writeOutput(ostream &output) const
for (const auto & [symb_id, expr] : def_table)
output << "M_.epilogue_names{" << idx++ << "} = '"
<< symbol_table.getName(symb_id) << "';" << endl;
set<int> endogs;
for (const auto & [symb_id, expr] : def_table)
expr->collectVariables(SymbolType::endogenous, endogs);
SymbolList symbol_list;
for (auto symb_id : endogs)
symbol_list.addSymbol(symbol_table.getName(symb_id));
symbol_list.writeOutput("M_.epilogue_var_list_", output);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment