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
7c6ae272
Commit
7c6ae272
authored
Sep 25, 2012
by
Houtan Bastani
Browse files
ms-sbvar: remove field removal for file tags
parent
12af7298
Changes
3
Hide whitespace changes
Inline
Side-by-side
matlab/ms-sbvar/initialize_ms_sbvar_options.m
View file @
7c6ae272
...
...
@@ -32,15 +32,11 @@ function options_=initialize_ms_sbvar_options(M_, options_)
% MS SBVAR
% all mex functions
options_
.
ms
.
file_tag
=
M_
.
fname
;
options_
.
ms
.
create_init
=
1
;
options_
.
ms
.
mh_file
=
''
;
options_
.
ms
.
free_param_file
=
''
;
if
isfield
(
options_
.
ms
,
'simulation_file_tag'
)
options_
.
ms
=
rmfield
(
options_
.
ms
,
'simulation_file_tag'
);
end
if
isfield
(
options_
.
ms
,
'output_file_tag'
)
options_
.
ms
=
rmfield
(
options_
.
ms
,
'output_file_tag'
);
end
options_
.
ms
.
output_file_tag
=
''
;
options_
.
ms
.
simulation_file_tag
=
''
;
options_
.
ms
.
create_init
=
1
;
% prepare ms sbvar & estimation
options_
.
ms
.
coefficients_prior_hyperparameters
=
[
1.0
1.0
0.1
1.2
1.0
1.0
];
options_
.
ms
.
freq
=
4
;
...
...
matlab/ms-sbvar/set_file_tags.m
View file @
7c6ae272
...
...
@@ -11,7 +11,7 @@ function [options_]=set_file_tags(options_)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011
-2012
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -28,7 +28,7 @@ function [options_]=set_file_tags(options_)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if
~
is
field
(
options_
.
ms
,
'
output_file_tag
'
)
if
is
empty
(
options_
.
ms
.
output_file_tag
)
options_
.
ms
.
output_file_tag
=
options_
.
ms
.
file_tag
;
end
end
matlab/ms-sbvar/set_ms_simulation_file.m
View file @
7c6ae272
...
...
@@ -11,7 +11,7 @@ function options_=set_ms_simulation_file(options_)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2011 Dynare Team
% Copyright (C) 2011
-2012
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -28,7 +28,7 @@ function options_=set_ms_simulation_file(options_)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if
~
is
field
(
options_
.
ms
,
'
simulation_file_tag
'
)
if
is
empty
(
options_
.
ms
.
simulation_file_tag
)
options_
.
ms
.
simulation_file_tag
=
options_
.
ms
.
file_tag
;
end
options_
.
ms
.
mh_file
=
[
'simulation_'
options_
.
ms
.
simulation_file_tag
'.out'
];
...
...
Write
Preview
Markdown
is supported
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