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
Dynare
dynare
Commits
8113c88a
Commit
8113c88a
authored
Sep 13, 2017
by
Houtan Bastani
Browse files
preprocessor: histval should only accept lag values <= 0. closes #1510
parent
91a954ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ParsingDriver.cc
View file @
8113c88a
...
...
@@ -546,6 +546,9 @@ ParsingDriver::hist_val(string *name, string *lag, expr_t rhs)
error
(
"histval: "
+
*
name
+
" should be an endogenous or exogenous variable"
);
int
ilag
=
atoi
(
lag
->
c_str
());
if
(
ilag
>
0
)
error
(
"histval: the lag on "
+
*
name
+
" should be less than or equal to 0"
);
pair
<
int
,
int
>
key
(
symb_id
,
ilag
);
if
(
mod_file
->
dynamic_model
.
minLagForSymbol
(
symb_id
)
>
ilag
-
1
)
...
...
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