Home > matlab > ms-sbvar > clean_files_for_second_type_of_mex.m

clean_files_for_second_type_of_mex

PURPOSE ^

function clean_files_for_second_type_of_mex(M_, options_, type)

SYNOPSIS ^

function clean_files_for_second_type_of_mex(M_, options_, type)

DESCRIPTION ^

 function clean_files_for_second_type_of_mex(M_, options_, type)
 clean the files for the appropriate file tag and mex function

 INPUTS
    M_:          (struct)    model structure
    options_:    (struct)    options
    type:        (string)    one of irf, forecast or
    variance_decomposition

 SPECIAL REQUIREMENTS
    none

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function clean_files_for_second_type_of_mex(M_, options_, type)
0002 % function clean_files_for_second_type_of_mex(M_, options_, type)
0003 % clean the files for the appropriate file tag and mex function
0004 %
0005 % INPUTS
0006 %    M_:          (struct)    model structure
0007 %    options_:    (struct)    options
0008 %    type:        (string)    one of irf, forecast or
0009 %    variance_decomposition
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 tagtouse = options_.ms.file_tag;
0032 if ~strcmp(tagtouse, options_.ms.output_file_tag)
0033     tagtouse = options_.ms.output_file_tag;
0034 end
0035 
0036 switch type
0037     case 'irf'
0038         clean_ms_irf_files(tagtouse);
0039     case 'forecast'
0040         clean_ms_forecast_files(tagtouse);
0041     case 'variance_decomposition'
0042         clean_ms_variance_decomposition_files(tagtouse);
0043     otherwise
0044         error('clean_files_for_second_type_of_mex: should not arrive here');
0045 end

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