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
Willi Mutschler
preprocessor
Commits
ec66768a
Unverified
Commit
ec66768a
authored
Jan 22, 2021
by
Sébastien Villemot
Browse files
Forbid exogenous deterministic variables with a lead or lag
Ref. dynare#1765
parent
ab656f2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ParsingDriver.cc
View file @
ec66768a
/*
* Copyright © 2003-202
0
Dynare Team
* Copyright © 2003-202
1
Dynare Team
*
* This file is part of Dynare.
*
...
...
@@ -398,6 +398,10 @@ ParsingDriver::add_model_variable(int symb_id, int lag)
error
(
"Symbol "
+
mod_file
->
symbol_table
.
getName
(
symb_id
)
+
" is a function name external to Dynare. It cannot be used like a variable without input argument inside model."
);
// See dynare#1765
if
(
type
==
SymbolType
::
exogenousDet
&&
lag
!=
0
)
error
(
"Exogenous deterministic variable "
+
mod_file
->
symbol_table
.
getName
(
symb_id
)
+
" cannot be given a lead or a lag."
);
if
(
type
==
SymbolType
::
modelLocalVariable
&&
lag
!=
0
)
error
(
"Model local variable "
+
mod_file
->
symbol_table
.
getName
(
symb_id
)
+
" cannot be given a lead or a lag."
);
...
...
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