Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
45137f13
Commit
45137f13
authored
Sep 17, 2010
by
Ferhat Mihoubi
Committed by
Sébastien Villemot
Sep 17, 2010
Browse files
- bug correction in error printout (elimination of an unused variable : nb_endo in SparseMatrix)
parent
c7eff4ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
mex/sources/bytecode/SparseMatrix.cc
View file @
45137f13
...
...
@@ -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
])
...
...
mex/sources/bytecode/SparseMatrix.hh
View file @
45137f13
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment