Commit 7c6ae272 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

ms-sbvar: remove field removal for file tags

parent 12af7298
......@@ -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;
......
......@@ -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 ~isfield(options_.ms,'output_file_tag')
if isempty(options_.ms.output_file_tag)
options_.ms.output_file_tag = options_.ms.file_tag;
end
end
......@@ -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 ~isfield(options_.ms, 'simulation_file_tag')
if isempty(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'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment