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
2753ab98
Verified
Commit
2753ab98
authored
May 17, 2019
by
Houtan Bastani
Browse files
pac: collect exogenous variables in growth argument to pass exo use test in ModFile.cc
parent
51beb9c2
Pipeline
#1244
passed with stage
in 1 minute and 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ComputingTasks.cc
View file @
2753ab98
...
...
@@ -279,6 +279,13 @@ PacModelStatement::PacModelStatement(string name_arg,
{
}
void
PacModelStatement
::
checkPass
(
ModFileStructure
&
mod_file_struct
,
WarningConsolidation
&
warnings
)
{
if
(
growth
)
growth
->
collectVariables
(
SymbolType
::
exogenous
,
mod_file_struct
.
pac_params
);
}
void
PacModelStatement
::
overwriteGrowth
(
expr_t
new_growth
)
{
...
...
src/ComputingTasks.hh
View file @
2753ab98
...
...
@@ -152,6 +152,7 @@ public:
double
steady_state_growth_rate_number_arg
,
int
steady_state_growth_rate_symb_id_arg
,
const
SymbolTable
&
symbol_table_arg
);
void
checkPass
(
ModFileStructure
&
mod_file_struct
,
WarningConsolidation
&
warnings
)
override
;
void
overwriteGrowth
(
expr_t
new_growth
);
void
writeOutput
(
ostream
&
output
,
const
string
&
basename
,
bool
minimal_workspace
)
const
override
;
void
writeJsonOutput
(
ostream
&
output
)
const
override
;
...
...
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