preprocessor: fixed bug in "plot_conditional_forecast"

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3066 ac1d8469-bf42-47a9-8791-bf33cf982152
issue#70
sebastien 2009-10-22 14:42:12 +00:00
parent ab7bcdd304
commit 5d013c6017
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -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: