Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Stéphane Adjemian
dynare
Commits
96d53846
Commit
96d53846
authored
May 19, 2016
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Added boolean variable for tracking if a steadystate block is present in the mod file.
parent
73787c0c
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
julia/DynareModel.jl
+2
-0
2 additions, 0 deletions
julia/DynareModel.jl
preprocessor/ModFile.cc
+1
-0
1 addition, 0 deletions
preprocessor/ModFile.cc
with
3 additions
and
0 deletions
julia/DynareModel.jl
+
2
−
0
View file @
96d53846
...
...
@@ -109,6 +109,7 @@ type Model
maximum_exo_lead
::
Int
lead_lag_incidence
::
Matrix
{
Int
}
nnzderivatives
::
Vector
{
Int
}
analytical_steady_state
::
Bool
static_and_dynamic_models_differ
::
Bool
equation_tags
::
Vector
{
UTF8String
}
exo_names_orig_ord
::
Vector
{
Int
}
...
...
@@ -156,6 +157,7 @@ function dynare_model()
0
,
# maximum_exo_lead
Array
(
Int
,
3
,
0
),
# lead_lag_incidence
zeros
(
Int
,
3
),
# nnzderivatives
false
,
# analytical_steady_state
false
,
# static_and_dynamic_models_differ
Array
(
ASCIIString
,
0
),
# equation_tags
Array
(
Int64
,
1
),
# exo_names_orig_ord
...
...
This diff is collapsed.
Click to expand it.
preprocessor/ModFile.cc
+
1
−
0
View file @
96d53846
...
...
@@ -1174,6 +1174,7 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output)
jlOutputFile
<<
"model.static = "
<<
basename
<<
"Static.static!"
<<
endl
<<
"model.dynamic = "
<<
basename
<<
"Dynamic.dynamic!"
<<
endl
<<
"if isfile(
\"
"
<<
basename
<<
"SteadyState2.jl"
"
\"
)"
<<
endl
<<
" model.analytical_steady_state = true"
<<
endl
<<
" model.steady_state = "
<<
basename
<<
"SteadyState2.steady_state!"
<<
endl
<<
"end"
<<
endl
<<
"if isfile(
\"
"
<<
basename
<<
"StaticParamsDerivs.jl"
"
\"
)"
<<
endl
...
...
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