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
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
Normann Rion
preprocessor
Commits
4b401e62
Verified
Commit
4b401e62
authored
May 28, 2021
by
Johannes Pfeifer
Committed by
Sébastien Villemot
May 31, 2021
Browse files
Options
Downloads
Patches
Plain Diff
Preparations for Occbin MR
Related to
Dynare/dynare!1863
parent
c5f9ae89
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ModFile.cc
+5
-7
5 additions, 7 deletions
src/ModFile.cc
with
5 additions
and
7 deletions
src/ModFile.cc
+
5
−
7
View file @
4b401e62
...
...
@@ -693,13 +693,12 @@ ModFile::transformPass(bool nostrict, bool stochastic, bool compute_xrefs, bool
}
if
(
occbin
&&
(
mod_file_struct
.
stoch_simul
_present
||
mod_file_struct
.
osr
_present
&&
(
mod_file_struct
.
osr
_present
||
mod_file_struct
.
mom_estimation
_present
||
mod_file_struct
.
ramsey_model_present
||
mod_file_struct
.
ramsey_policy_present
||
mod_file_struct
.
discretionary_policy_present
||
mod_file_struct
.
extended_path_present
||
mod_file_struct
.
identification_present
||
mod_file_struct
.
sensitivity_present
||
mod_file_struct
.
mom_estimation_present
||
mod_file_struct
.
calib_smoother_present
))
||
mod_file_struct
.
identification_present
||
mod_file_struct
.
sensitivity_present
))
{
cerr
<<
"ERROR: the 'occbin' option is not compatible with commands other than 'estimation'"
<<
endl
;
cerr
<<
"ERROR: the 'occbin' option is not compatible with commands other than 'estimation'
, 'stoch_simul', and 'calib_smoother'.
"
<<
endl
;
exit
(
EXIT_FAILURE
);
}
...
...
@@ -1041,9 +1040,8 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
}
if
(
occbin
)
mOutputFile
<<
"options_ = set_default_occbin_options(options_, M_);"
<<
endl
<<
"clear mr_runsim_occbin_fn"
<<
endl
<<
"M_ = get_wish_list(M_);"
<<
endl
;
mOutputFile
<<
"options_ = occbin.set_default_options(options_, M_);"
<<
endl
<<
"M_ = occbin.get_info(M_);"
<<
endl
;
if
(
onlymodel
||
gui
)
for
(
const
auto
&
statement
:
statements
)
...
...
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