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
91b7888e
Commit
91b7888e
authored
Aug 22, 2018
by
Houtan Bastani
Browse files
print nonstationary field for trend_component and var models
parent
1918a56a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SubModel.cc
View file @
91b7888e
...
...
@@ -256,8 +256,11 @@ TrendComponentModelTable::writeOutput(ostream &output) const
<<
"M_.trend_component."
<<
name
<<
".orig_diff_var = ["
;
for
(
auto
it
:
orig_diff_var
.
at
(
name
))
output
<<
(
it
>=
0
?
symbol_table
.
getTypeSpecificID
(
it
)
+
1
:
-
1
)
<<
" "
;
output
<<
"];"
<<
endl
<<
"M_.trend_component."
<<
name
<<
".nonstationary = ["
;
for
(
auto
it
:
nonstationary
.
at
(
name
))
output
<<
(
it
?
"true"
:
"false"
)
<<
" "
;
output
<<
"];"
<<
endl
;
int
i
=
1
;
for
(
const
auto
&
it
:
rhs
.
at
(
name
))
{
...
...
@@ -363,8 +366,11 @@ VarModelTable::writeOutput(ostream &output) const
<<
"M_.var."
<<
name
<<
".orig_diff_var = ["
;
for
(
auto
it
:
orig_diff_var
.
at
(
name
))
output
<<
(
it
>=
0
?
symbol_table
.
getTypeSpecificID
(
it
)
+
1
:
-
1
)
<<
" "
;
output
<<
"];"
<<
endl
<<
"M_.var."
<<
name
<<
".nonstationary = ["
;
for
(
auto
it
:
nonstationary
.
at
(
name
))
output
<<
(
it
?
"true"
:
"false"
)
<<
" "
;
output
<<
"];"
<<
endl
;
int
i
=
1
;
for
(
const
auto
&
it
:
rhs
.
at
(
name
))
{
...
...
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