- bug correction in error printout (elimination of an unused variable : nb_endo in SparseMatrix)

time-shift
Ferhat Mihoubi 2010-09-17 11:33:45 +02:00 committed by Sébastien Villemot
parent c7eff4ba60
commit 45137f1367
2 changed files with 6 additions and 6 deletions

View File

@ -2240,8 +2240,8 @@ SparseMatrix::simulate_NG1(int blck, int y_size, int it_, int y_kmin, int y_kmax
{
ostringstream res;
for (unsigned int i = 0; i < endo_name_length; i++)
if (P_endo_names[2*(j+i*nb_endo)] != ' ')
res << P_endo_names[2*(j+i*nb_endo)];
if (P_endo_names[2*(j+i*y_size)] != ' ')
res << P_endo_names[2*(j+i*y_size)];
bool select = false;
for (int i = 0; i < Size; i++)
if (j == index_vara[i])
@ -2265,10 +2265,10 @@ SparseMatrix::simulate_NG1(int blck, int y_size, int it_, int y_kmin, int y_kmax
{
for (j = 0; j < y_size; j++)
{
ostringstream res;
ostringstream res("");
for (unsigned int i = 0; i < endo_name_length; i++)
if (P_endo_names[2*(j+i*nb_endo)] != ' ')
res << P_endo_names[2*(j+i*nb_endo)];
if (P_endo_names[2*(j+i*y_size)] != ' ')
res << P_endo_names[2*(j+i*y_size)];
bool select = false;
for (int i = 0; i < Size; i++)
if (j == index_vara[i])

View File

@ -164,7 +164,7 @@ private:
map<pair<int, int>, NonZeroElem *> Mapped_Array;
int *NbNZRow, *NbNZCol;
NonZeroElem **FNZE_R, **FNZE_C;
int nb_endo, u_count_init;
int u_count_init;
int *pivot, *pivotk, *pivot_save;
double *pivotv, *pivotva;