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
1cfaddcd
Commit
1cfaddcd
authored
Oct 20, 2013
by
MichelJuillard
Browse files
extended_preprocessor: renaming files/class and bug fixing
parent
86c3a2b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ModFile.cc
View file @
1cfaddcd
...
...
@@ -824,9 +824,9 @@ ModFile::writeModelCC(const string &basename, bool cuda) const
<<
" * from model file (.mod)"
<<
endl
<<
" */"
<<
endl
<<
endl
<<
"#include
\"
ms_dsg
e_c_driver.hh
\"
"
<<
endl
<<
"#include
\"
dynar
e_c
pp
_driver.hh
\"
"
<<
endl
<<
endl
<<
"
MsDsg
eInfo *"
<<
endl
<<
"
Dynar
eInfo *"
<<
endl
<<
"preprocessorOutput()"
<<
endl
<<
"{"
<<
endl
;
...
...
@@ -837,7 +837,6 @@ ModFile::writeModelCC(const string &basename, bool cuda) const
<<
" * Writing statements"
<<
endl
<<
" */"
<<
endl
<<
"/* prior args*/"
<<
endl
<<
"MsDsgeInfo *msdsgeinfo = new MsDsgeInfo(exo_names, exo_det_names, endo_names, param_names, params, aux_vars, predetermined_variables, varobs, lead_lag_incidence, NNZDerivatives);"
<<
endl
<<
"int index, index1;"
<<
endl
<<
"string shape;"
<<
endl
<<
"double mean, mode, stdev, variance;"
<<
endl
...
...
@@ -848,15 +847,19 @@ ModFile::writeModelCC(const string &basename, bool cuda) const
<<
"vector<double> duration;"
<<
endl
<<
"restriction_map_t restriction_map;"
<<
endl
<<
"/* options args*/"
<<
endl
<<
"double init;"
<<
endl
<<
endl
;
<<
"double init;"
<<
endl
<<
"vector< vector<int> > lead_lag_incidence;"
<<
endl
<<
"vector<int> NNZDerivatives;"
<<
endl
<<
"vector<double> params(param_nbr);"
<<
endl
<<
endl
;
// Print statements
for
(
vector
<
Statement
*>::
const_iterator
it
=
statements
.
begin
();
it
!=
statements
.
end
();
it
++
)
(
*
it
)
->
writeCOutput
(
mDriverCFile
,
basename
);
mDriverCFile
<<
"return msdsgeinfo;"
<<
endl
;
mDriverCFile
<<
"}"
<<
endl
;
mDriverCFile
<<
"DynareInfo *model_info = new DynareInfo(exo_names, exo_det_names, endo_names, param_names, params, aux_vars, predetermined_variables, varobs, lead_lag_incidence, NNZDerivatives);"
<<
endl
<<
"return model_info;"
<<
endl
<<
"}"
<<
endl
;
mDriverCFile
.
close
();
// Write informational m file
...
...
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