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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
d0c0f552
Verified
Commit
d0c0f552
authored
9 months ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Manual: fix documentation of “noclearall” and “onlyclearglobals” options
(manually cherry picked from commit
de780c32
)
parent
58a65bd8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/manual/source/running-dynare.rst
+11
-14
11 additions, 14 deletions
doc/manual/source/running-dynare.rst
matlab/dynare.m
+0
-2
0 additions, 2 deletions
matlab/dynare.m
with
11 additions
and
16 deletions
doc/manual/source/running-dynare.rst
+
11
−
14
View file @
d0c0f552
...
@@ -125,23 +125,20 @@ by the ``dynare`` command.
...
@@ -125,23 +125,20 @@ by the ``dynare`` command.
.. option:: noclearall
.. option:: noclearall
By default, ``dynare`` will issue a ``clear all`` command to
By default, ``dynare`` deletes all the global variables and the
MATLAB (<R2015b) or Octave, thereby deleting all workspace
functions using persistent variables, in order to benefit from the JIT
variables and functions; this option instructs ``dynare`` not
(just-in-time) compilation. This option instructs ``dynare`` not to
to clear the workspace. Note that starting with MATLAB 2015b
clear those.
``dynare`` only deletes the global variables and the functions
using persistent variables, in order to benefit from the JIT
(Just In Time) compilation. In this case the option instructs
``dynare`` not to clear the globals and functions.
.. option:: onlyclearglobals
.. option:: onlyclearglobals
By default, ``dynare`` will issue a ``clear all`` command to
By default, ``dynare`` deletes all the global variables and the
MATLAB versions before 2015b and to Octave, thereby deleting
functions using persistent variables, in order to benefit from the JIT
all workspace variables; this option instructs ``dynare`` to
(just-in-time) compilation. This option instructs ``dynare`` to clear
clear only the global variables (i.e. ``M_, options_, oo_,
only its own global variables (*i.e.* ``M_, options_, oo_,
estim_params_, bayestopt_``, and ``dataset_``), leaving the
estim_params_, bayestopt_``, ``dataset_``, ``dataset_info`` and
other variables in the workspace.
``estimation_info``), leaving the other variables in the workspace, and
not clearing functions using persistent variables.
.. option:: debug
.. option:: debug
...
...
This diff is collapsed.
Click to expand it.
matlab/dynare.m
+
0
−
2
View file @
d0c0f552
...
@@ -301,8 +301,6 @@ if ~ isempty(find(abs(fname) == 46))
...
@@ -301,8 +301,6 @@ if ~ isempty(find(abs(fname) == 46))
fname
=
fname
(:,
1
:
find
(
abs
(
fname
)
==
46
)
-
1
)
;
fname
=
fname
(:,
1
:
find
(
abs
(
fname
)
==
46
)
-
1
)
;
end
end
% We need to clear the driver (and only the driver, because the "clear all"
% within the driver will clean the rest)
clear
([
'+'
fname
'/driver'
])
clear
([
'+'
fname
'/driver'
])
try
try
...
...
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