preprocessor: fixed bug in "plot_conditional_forecast"
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3066 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
ab7bcdd304
commit
5d013c6017
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue