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
preprocessor
Commits
af54c7a1
Verified
Commit
af54c7a1
authored
Feb 19, 2019
by
Houtan Bastani
Browse files
ensure steady_state_growth option is a parameter or a number
parent
c1cf5c8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ParsingDriver.cc
View file @
af54c7a1
...
...
@@ -2634,6 +2634,10 @@ ParsingDriver::pac_model()
||
pac_steady_state_growth_rate_symb_id
!=
pac_growth_symb_id
))
error
(
"when aux_model_name is not passed to the pac_model statement, steady_state_growth must be a parameter equal to growth"
);
if
(
pac_steady_state_growth_rate_symb_id
>=
0
&&
mod_file
->
symbol_table
.
getType
(
pac_steady_state_growth_rate_symb_id
)
!=
SymbolType
::
parameter
)
error
(
"pac_model: steady_state_growth accepts either a number or a parameter"
);
it
=
options_list
.
string_options
.
find
(
"pac.discount"
);
if
(
it
==
options_list
.
string_options
.
end
())
error
(
"You must pass the discount option to the pac_model statement."
);
...
...
Write
Preview
Markdown
is supported
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