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

time-shift
Stéphane Adjemian (Charybdis) 2012-06-07 11:07:22 +02:00
parent e12748329b
commit 8dc1b9037d
1 changed files with 2 additions and 2 deletions

View File

@ -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++)