Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
preprocessor
Commits
6156c76f
Commit
6156c76f
authored
Aug 19, 2015
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
load steady_state! function into model.steady_state
parent
6b96a83d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ModFile.cc
+3
-1
3 additions, 1 deletion
ModFile.cc
SteadyStateModel.cc
+4
-1
4 additions, 1 deletion
SteadyStateModel.cc
with
7 additions
and
2 deletions
ModFile.cc
+
3
−
1
View file @
6156c76f
...
...
@@ -1086,7 +1086,8 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output)
<<
"using DynareOutput"
<<
endl
<<
"using Utils"
<<
endl
<<
"using "
<<
basename
<<
"Static"
<<
endl
<<
"using "
<<
basename
<<
"Dynamic"
<<
endl
<<
endl
<<
"using "
<<
basename
<<
"Dynamic"
<<
endl
<<
"using "
<<
basename
<<
"SteadyState2"
<<
endl
<<
endl
<<
"export model"
<<
endl
;
// Write Output
...
...
@@ -1146,6 +1147,7 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output)
jlOutputFile
<<
"model.static = "
<<
basename
<<
"Static.getStaticFunction()"
<<
endl
<<
"model.dynamic = "
<<
basename
<<
"Dynamic.getDynamicFunction()"
<<
endl
<<
"model.steady_state = "
<<
basename
<<
"SteadyState2.getSteadyStateFunction()"
<<
endl
<<
"try"
<<
endl
<<
" using "
<<
basename
<<
"StaticParamsDerivs"
<<
endl
<<
" model.static_params_derivs = "
<<
basename
...
...
This diff is collapsed.
Click to expand it.
SteadyStateModel.cc
+
4
−
1
View file @
6156c76f
...
...
@@ -128,7 +128,10 @@ SteadyStateModel::writeSteadyStateFile(const string &basename, bool ramsey_model
<<
" info = 0;"
<<
endl
;
else
output
<<
"module "
<<
basename
<<
"SteadyState2"
<<
endl
<<
endl
<<
"export steady_state!"
<<
endl
<<
endl
<<
"export getSteadyStateFunction"
<<
endl
<<
endl
<<
"function getSteadyStateFunction()"
<<
endl
<<
" steady_state!"
<<
endl
<<
"end"
<<
endl
<<
endl
<<
"function steady_state!(ys_, exo_, params)"
<<
endl
;
for
(
size_t
i
=
0
;
i
<
def_table
.
size
();
i
++
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment