Commit 8dc1b903 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug in conditional forecasts (wrong indexing of the controlled variables).

parent e1274832
......@@ -289,9 +289,9 @@ ConditionalForecastPathsStatement::writeOutput(ostream &output, const string &ba
it != paths.end(); it++)
{
if (it == paths.begin())
output << "constrained_vars_ = " << it->first << ";" << endl;
output << "constrained_vars_ = " << it->first +1 << ";" << endl;
else
output << "constrained_vars_ = [constrained_vars_; " << it->first << "];" << endl;
output << "constrained_vars_ = [constrained_vars_; " << it->first +1 << "];" << endl;
const vector<AbstractShocksStatement::DetShockElement> &elems = it->second;
for (int i = 0; i < (int) elems.size(); i++)
......
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