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
c7c26190
Commit
c7c26190
authored
May 25, 2018
by
Sébastien Villemot
Browse files
Reactivate use_dll mode
parent
968e411c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/DynamicModel.cc
View file @
c7c26190
...
...
@@ -2604,19 +2604,16 @@ DynamicModel::writeDynamicModel(const string &dynamic_basename, ostream &Dynamic
writeDynamicMatlabCompatLayer
(
dynamic_basename
);
}
/*
else
if
(
output_type
==
oCDynamicModel
)
{
DynamicOutput
<<
"void Dynamic(double *y, double *x, int nb_row_x, double *params, double *steady_state, int it_, double *residual, double *g1, double *v2, double *v3)"
<<
endl
<<
"{"
<<
endl
<<
" double lhs, rhs;"
<<
endl
<<
endl
<< " * Residual equations *" << endl
<< model_local_vars_output.str()
<<
" /* Residual equations */"
<<
endl
<<
model_tt_output
.
str
()
<<
model_output
.
str
()
<< " * Jacobian *" << endl
<<
"
/
* Jacobian *
/
"
<<
endl
<<
" if (g1 == NULL)"
<<
endl
<<
" return;"
<<
endl
<<
endl
...
...
@@ -2625,7 +2622,7 @@ DynamicModel::writeDynamicModel(const string &dynamic_basename, ostream &Dynamic
<<
endl
;
if
(
second_derivatives
.
size
())
DynamicOutput << " * Hessian for endogenous and exogenous variables *" << endl
DynamicOutput
<<
"
/
* Hessian for endogenous and exogenous variables *
/
"
<<
endl
<<
" if (v2 == NULL)"
<<
endl
<<
" return;"
<<
endl
<<
endl
...
...
@@ -2634,7 +2631,7 @@ DynamicModel::writeDynamicModel(const string &dynamic_basename, ostream &Dynamic
<<
endl
;
if
(
third_derivatives
.
size
())
DynamicOutput << " * Third derivatives for endogenous and exogenous variables *" << endl
DynamicOutput
<<
"
/
* Third derivatives for endogenous and exogenous variables *
/
"
<<
endl
<<
" if (v3 == NULL)"
<<
endl
<<
" return;"
<<
endl
<<
endl
...
...
@@ -2644,7 +2641,6 @@ DynamicModel::writeDynamicModel(const string &dynamic_basename, ostream &Dynamic
DynamicOutput
<<
"}"
<<
endl
<<
endl
;
}
*/
else
{
string
filename
=
dynamic_basename
+
"Dynamic.jl"
;
...
...
src/StaticModel.cc
View file @
c7c26190
...
...
@@ -1632,36 +1632,37 @@ StaticModel::writeStaticModel(const string &basename,
}
else
if
(
output_type
==
oCStaticModel
)
{
/*
StaticOutput
<<
"void Static(double *y, double *x, int nb_row_x, double *params, double *residual, double *g1, double *v2)"
<<
endl
<<
"{"
<<
endl
<<
" double lhs, rhs;"
<<
endl
<<
endl
<< " * Residual equations *" << endl
<< model_
local_vars
_output.str()
<<
"
/
* Residual equations *
/
"
<<
endl
<<
model_
tt
_output
.
str
()
<<
model_output
.
str
()
<< " * Jacobian *" << endl
<<
"
/
* Jacobian *
/
"
<<
endl
<<
" if (g1 == NULL)"
<<
endl
<<
" return;"
<<
endl
<<
endl
<<
jacobian_tt_output
.
str
()
<<
jacobian_output
.
str
()
<<
endl
;
if
(
second_derivatives
.
size
())
StaticOutput << " * Hessian for endogenous and exogenous variables *" << endl
StaticOutput
<<
"
/
* Hessian for endogenous and exogenous variables *
/
"
<<
endl
<<
" if (v2 == NULL)"
<<
endl
<<
" return;"
<<
endl
<<
endl
<<
hessian_tt_output
.
str
()
<<
hessian_output
.
str
()
<<
endl
;
if
(
third_derivatives
.
size
())
StaticOutput << " * Third derivatives for endogenous and exogenous variables *" << endl
StaticOutput
<<
"
/
* Third derivatives for endogenous and exogenous variables *
/
"
<<
endl
<<
" if (v3 == NULL)"
<<
endl
<<
" return;"
<<
endl
<<
endl
<<
third_derivatives_tt_output
.
str
()
<<
third_derivatives_output
.
str
()
<<
endl
;
*/
}
else
{
...
...
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