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
Dóra Kocsis
dynare
Commits
f63ce018
Commit
f63ce018
authored
Jan 21, 2012
by
Stéphane Adjemian
Browse files
Put debug and memory modes in options_.ep.
parent
651c5e7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/ep/extended_path.m
View file @
f63ce018
...
...
@@ -31,11 +31,9 @@ function time_series = extended_path(initial_conditions,sample_size)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global
M_
options_
oo_
memory
=
0
;
debug
=
0
;
options_
.
verbosity
=
options_
.
ep
.
verbosity
;
verbosity
=
options_
.
ep
.
verbosity
+
debug
;
verbosity
=
options_
.
ep
.
verbosity
+
options_
.
ep
.
debug
;
% Test if bytecode and block options are used (these options are mandatory)
if
~
(
options_
.
bytecode
&&
options_
.
block
)
...
...
@@ -159,7 +157,7 @@ t = 0;
hh
=
dyn_waitbar
(
0
,
'Please wait. Extended Path simulations...'
);
set
(
hh
,
'Name'
,
'EP simulations.'
);
if
memory
if
options_
.
ep
.
memory
mArray1
=
zeros
(
M_
.
endo_nbr
,
100
,
nnn
,
sample_size
);
mArray2
=
zeros
(
M_
.
exo_nbr
,
100
,
nnn
,
sample_size
);
end
...
...
@@ -308,7 +306,7 @@ while (t<sample_size)
oo_
.
endo_simul
=
tmp
;
end
% Save results of the perfect foresight model solver.
if
memory
if
options_
.
ep
.
memory
mArray1
(:,:,
s
,
t
)
=
oo_
.
endo_simul
(:,
1
:
100
);
mArrat2
(:,:,
s
,
t
)
=
transpose
(
oo_
.
exo_simul
(
1
:
100
,:));
end
...
...
@@ -327,6 +325,6 @@ dyn_waitbar_close(hh);
oo_
.
endo_simul
=
oo_
.
steady_state
;
if
memory
save
([
M_
.
fname
'_memory'
],
'mArray1'
,
'mArray2'
,
'www'
);
if
options_
.
ep
.
memory
save
([
M_
.
fname
'_
options_.ep.
memory'
],
'mArray1'
,
'mArray2'
,
'www'
);
end
\ No newline at end of file
matlab/global_initialization.m
View file @
f63ce018
...
...
@@ -109,6 +109,10 @@ options_.SpectralDensity = 0;
% Extended path options
%
% Set debug flag
ep
.
debug
=
0
;
% Set memory flag
ep
.
memory
=
0
;
% Set verbose mode
ep
.
verbosity
=
0
;
% Initialization of the perfect foresight equilibrium paths
...
...
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