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
51beb9c2
Verified
Commit
51beb9c2
authored
May 15, 2019
by
Sébastien Villemot
Browse files
New M_.has_external_function field
parent
840b5f4f
Pipeline
#1236
passed with stage
in 1 minute and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/DynamicModel.cc
View file @
51beb9c2
...
...
@@ -3093,6 +3093,18 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
<<
(
static_only_equations
.
size
()
>
0
?
"true"
:
"false"
)
<<
";"
<<
endl
;
// Say if model contains an external function call
bool
has_external_function
=
false
;
for
(
size_t
eq
=
0
;
eq
<
equations
.
size
();
eq
++
)
if
(
equations
[
eq
]
->
containsExternalFunction
())
{
has_external_function
=
true
;
break
;
}
output
<<
modstruct
<<
"has_external_function = "
<<
(
has_external_function
?
"true"
:
"false"
)
<<
';'
<<
endl
;
vector
<
int
>
state_var
;
for
(
int
endoID
=
0
;
endoID
<
symbol_table
.
endo_nbr
();
endoID
++
)
// Loop on periods
...
...
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