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
57a2e338
Commit
57a2e338
authored
Oct 20, 2010
by
Sébastien Villemot
Browse files
Histval: fixed bug for exogenous introduced in previous commit
parent
4a252d8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/NumericalInitialization.cc
View file @
57a2e338
...
...
@@ -194,13 +194,15 @@ HistValStatement::writeOutput(ostream &output, const string &basename) const
SymbolType
type
=
symbol_table
.
getType
(
symb_id
);
// For a lag greater than 1, lookup for auxiliary variable
if
((
type
==
eEndogenous
||
type
==
eExogenous
)
&&
lag
<
0
)
// For a lag greater than 1
on endo, or for any exo
, lookup for auxiliary variable
if
((
type
==
eEndogenous
&&
lag
<
0
)
||
type
==
eExogenous
)
{
try
{
// This function call must remain the 1st statement in this block
symb_id
=
symbol_table
.
searchAuxiliaryVars
(
symb_id
,
lag
);
lag
=
0
;
type
==
eEndogenous
;
}
catch
(
SymbolTable
::
SearchFailedException
&
e
)
{
...
...
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