- Corrects the simulation period for a forward looking system

time-shift
Ferhat Mihoubi 2011-08-07 10:44:57 +02:00
parent c1ffa446e2
commit 567ef44f6d
1 changed files with 3 additions and 3 deletions

View File

@ -1891,7 +1891,7 @@ Interpreter::simulate_a_block(const int size, const int type, string file_name,
}
else
{
for (it_ = periods+y_kmin; it_ > y_kmin; it_--)
for (it_ = periods+y_kmin-1; it_ >= y_kmin; it_--)
{
cvg = false;
iter = 0;
@ -2239,7 +2239,7 @@ Interpreter::simulate_a_block(const int size, const int type, string file_name,
if (!is_linear)
{
max_res_idx = 0;
for (it_ = periods+y_kmin; it_ > y_kmin; it_--)
for (it_ = periods+y_kmin-1; it_ >= y_kmin; it_--)
{
cvg = false;
iter = 0;
@ -2297,7 +2297,7 @@ Interpreter::simulate_a_block(const int size, const int type, string file_name,
}
else
{
for (it_ = periods+y_kmin; it_ > y_kmin; it_--)
for (it_ = periods+y_kmin-1; it_ >= y_kmin; it_--)
{
it_code = begining;
Per_y_ = it_*y_size;