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
3fa14031
Commit
3fa14031
authored
May 22, 2018
by
Sébastien Villemot
Browse files
Fix bug in *_{dynamic,static}_resid_g1_g2_g3.m functions
parent
732a3170
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/DynamicModel.cc
View file @
3fa14031
...
...
@@ -2185,7 +2185,7 @@ DynamicModel::writeWrapperFunctions(const string &basename, const string &ending
<< " g2 = " << basename + "_g2(T, y, x, params, steady_state, it_, false);" << endl;
else if (ending == "g3")
output << " T = " << basename + "_" + ending + "_tt(T, y, x, params, steady_state, it_);" << endl
<< " [residual, g1, g2] = " << basename + "_resid_g1(T, y, x, params, steady_state, it_, false);" << endl
<< " [residual, g1, g2] = " << basename + "_resid_g1
_g2
(T, y, x, params, steady_state, it_, false);" << endl
<< " g3 = " << basename + "_g3(T, y, x, params, steady_state, it_, false);" << endl;
output << endl << "end" << endl;
...
...
src/StaticModel.cc
View file @
3fa14031
...
...
@@ -1209,7 +1209,7 @@ StaticModel::writeWrapperFunctions(const string &basename, const string &ending)
<<
" g2 = "
<<
basename
+
"_g2(T, y, x, params, false);"
<<
endl
;
else
if
(
ending
==
"g3"
)
output
<<
" T = "
<<
basename
+
"_"
+
ending
+
"_tt(T, y, x, params);"
<<
endl
<<
" [residual, g1, g2] = "
<<
basename
+
"_resid_g1(T, y, x, params, false);"
<<
endl
<<
" [residual, g1, g2] = "
<<
basename
+
"_resid_g1
_g2
(T, y, x, params, false);"
<<
endl
<<
" g3 = "
<<
basename
+
"_g3(T, y, x, params, false);"
<<
endl
;
output
<<
endl
<<
"end"
<<
endl
;
...
...
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