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
8dc1b903
Commit
8dc1b903
authored
Jun 07, 2012
by
Stéphane Adjemian
Browse files
Fixed bug in conditional forecasts (wrong indexing of the controlled variables).
parent
e1274832
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/Shocks.cc
View file @
8dc1b903
...
...
@@ -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
++
)
...
...
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