Do not check for the steady state in diffuse filter mode

Closes #400
time-shift
Sébastien Villemot 2013-06-03 15:56:10 +02:00
parent bea8ce6dc4
commit 2f248dcec4
1 changed files with 5 additions and 0 deletions

View File

@ -358,6 +358,11 @@ EstimationStatement::writeOutput(ostream &output, const string &basename) const
else if (atoi(it->second.c_str()) == 2)
output << "options_.particle.status = 1;" << endl;
// Do not check for the steady state in diffuse filter mode (#400)
it = options_list.num_options.find("diffuse_filter");
if (it != options_list.num_options.end() && it->second == "1")
output << "options_.steadystate.nocheck = 1;" << endl;
symbol_list.writeOutput("var_list_", output);
output << "dynare_estimation(var_list_);\n";
}