Home > matlab > ms-sbvar > set_ms_simulation_file.m

set_ms_simulation_file

PURPOSE ^

function options_=set_ms_simulation_file(options_)

SYNOPSIS ^

function options_=set_ms_simulation_file(options_)

DESCRIPTION ^

 function options_=set_ms_simulation_file(options_)
 Set options_.ms.mh_file based on user input

 INPUTS
    options_:    (struct)    options

 OUTPUTS
    options_:    (struct)    options

 SPECIAL REQUIREMENTS
    none

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function options_=set_ms_simulation_file(options_)
0002 % function options_=set_ms_simulation_file(options_)
0003 % Set options_.ms.mh_file based on user input
0004 %
0005 % INPUTS
0006 %    options_:    (struct)    options
0007 %
0008 % OUTPUTS
0009 %    options_:    (struct)    options
0010 %
0011 % SPECIAL REQUIREMENTS
0012 %    none
0013 
0014 % Copyright (C) 2011 Dynare Team
0015 %
0016 % This file is part of Dynare.
0017 %
0018 % Dynare is free software: you can redistribute it and/or modify
0019 % it under the terms of the GNU General Public License as published by
0020 % the Free Software Foundation, either version 3 of the License, or
0021 % (at your option) any later version.
0022 %
0023 % Dynare is distributed in the hope that it will be useful,
0024 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0025 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0026 % GNU General Public License for more details.
0027 %
0028 % You should have received a copy of the GNU General Public License
0029 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
0030 
0031 if ~isfield(options_.ms, 'simulation_file_tag')
0032     options_.ms.simulation_file_tag = options_.ms.file_tag;
0033 end
0034 options_.ms.mh_file = ['simulation_' options_.ms.simulation_file_tag '.out'];
0035 
0036 if ~exist(options_.ms.mh_file,'file')
0037     error(['ERROR: Could not find Metropolis Hastings file: ' options_.ms.mh_file]);
0038 end
0039 end

Generated on Tue 22-May-2012 02:40:23 by m2html © 2005