Commit e9ca5705 authored by sebastien's avatar sebastien
Browse files

preprocessor: fixed bug in "plot_conditional_forecast"


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3066 ac1d8469-bf42-47a9-8791-bf33cf982152
parent a9f18121
......@@ -1047,5 +1047,8 @@ void
PlotConditionalForecastStatement::writeOutput(ostream &output, const string &basename) const
{
symbol_list.writeOutput("var_list_", output);
output << "plot_icforecast(var_list_);" << endl;
if (periods == -1)
output << "plot_icforecast(var_list_);" << endl;
else
output << "plot_icforecast(var_list_, " << periods << ");" << endl;
}
......@@ -481,7 +481,7 @@ public:
class PlotConditionalForecastStatement : public Statement
{
private:
//! A value of -1 indicates that the length of the constrained path should be used
//! A value of -1 indicates that the user didn't specify a value
const int periods;
const SymbolList symbol_list;
public:
......
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