Skip to content
Snippets Groups Projects
Commit 7c6ae272 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

ms-sbvar: remove field removal for file tags

parent 12af7298
No related branches found
No related tags found
No related merge requests found
...@@ -32,15 +32,11 @@ function options_=initialize_ms_sbvar_options(M_, options_) ...@@ -32,15 +32,11 @@ function options_=initialize_ms_sbvar_options(M_, options_)
% MS SBVAR % MS SBVAR
% all mex functions % all mex functions
options_.ms.file_tag = M_.fname; options_.ms.file_tag = M_.fname;
options_.ms.create_init = 1;
options_.ms.mh_file = ''; options_.ms.mh_file = '';
options_.ms.free_param_file = ''; options_.ms.free_param_file = '';
if isfield(options_.ms,'simulation_file_tag') options_.ms.output_file_tag = '';
options_.ms = rmfield(options_.ms,'simulation_file_tag'); options_.ms.simulation_file_tag = '';
end options_.ms.create_init = 1;
if isfield(options_.ms,'output_file_tag')
options_.ms = rmfield(options_.ms,'output_file_tag');
end
% prepare ms sbvar & estimation % prepare ms sbvar & estimation
options_.ms.coefficients_prior_hyperparameters = [1.0 1.0 0.1 1.2 1.0 1.0]; options_.ms.coefficients_prior_hyperparameters = [1.0 1.0 0.1 1.2 1.0 1.0];
options_.ms.freq = 4; options_.ms.freq = 4;
......
...@@ -11,7 +11,7 @@ function [options_]=set_file_tags(options_) ...@@ -11,7 +11,7 @@ function [options_]=set_file_tags(options_)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2011 Dynare Team % Copyright (C) 2011-2012 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -28,7 +28,7 @@ function [options_]=set_file_tags(options_) ...@@ -28,7 +28,7 @@ function [options_]=set_file_tags(options_)
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~isfield(options_.ms,'output_file_tag') if isempty(options_.ms.output_file_tag)
options_.ms.output_file_tag = options_.ms.file_tag; options_.ms.output_file_tag = options_.ms.file_tag;
end end
end end
...@@ -11,7 +11,7 @@ function options_=set_ms_simulation_file(options_) ...@@ -11,7 +11,7 @@ function options_=set_ms_simulation_file(options_)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2011 Dynare Team % Copyright (C) 2011-2012 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -28,7 +28,7 @@ function options_=set_ms_simulation_file(options_) ...@@ -28,7 +28,7 @@ function options_=set_ms_simulation_file(options_)
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~isfield(options_.ms, 'simulation_file_tag') if isempty(options_.ms.simulation_file_tag)
options_.ms.simulation_file_tag = options_.ms.file_tag; options_.ms.simulation_file_tag = options_.ms.file_tag;
end end
options_.ms.mh_file = ['simulation_' options_.ms.simulation_file_tag '.out']; options_.ms.mh_file = ['simulation_' options_.ms.simulation_file_tag '.out'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment