Commit a50e65fb authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Rename set_stationary_variables_list to get_variables_list

This function has nothing to do with stationary variables now that
unit_root_vars has been removed.

Closes: #218
parent 6be50d54
......@@ -54,7 +54,7 @@ if ~posterior
end
options_.varlist = options_.prior_analysis_endo_var_list;
end
[ivar,vartan ] = set_stationary_variables_list(options_, M_);
[ivar,vartan ] = get_variables_list(options_, M_);
if ~posterior
if exist('temp','var')
options_.varlist = temp;
......
......@@ -55,7 +55,7 @@ if ~posterior
end
options_.varlist = options_.prior_analysis_endo_var_list;
end
[ivar,vartan, options_] = set_stationary_variables_list(options_, M_);
[ivar,vartan, options_] = get_variables_list(options_, M_);
if ~posterior
if exist('temp','var')
options_.varlist = temp;
......
......@@ -55,7 +55,7 @@ if ~posterior
end
options_.varlist = options_.prior_analysis_endo_var_list;
end
[ivar,vartan] = set_stationary_variables_list(options_,M_);
[ivar,vartan] = get_variables_list(options_,M_);
if ~posterior
if exist('temp','var')
options_.varlist = temp;
......
......@@ -56,7 +56,7 @@ if ~posterior
end
options_.varlist = options_.prior_analysis_endo_var_list;
end
[ivar,vartan,options_] = set_stationary_variables_list(options_,M_);
[ivar,vartan,options_] = get_variables_list(options_,M_);
if ~posterior
if exist('temp','var')
options_.varlist = temp;
......
function [ivar,vartan,options_] = set_stationary_variables_list(options_,M_)
% This function builds a vector of indices targeting to the stationary
% variables in varlist.
function [ivar,vartan,options_] = get_variables_list(options_,M_)
% This function builds a vector of indices in varlist or varobs.
%
% INPUTS
% o options_ [structure] Describes global options.
% o M_ [structure] Describes the model.
% OUTPUTS
% o ivar [integer] nvar*1 vector of indices (nvar is the number
% of stationary variables).
% of variables).
% o vartan [char] array of characters (with nvar rows).
% o options_ [structure] Describes global options.
%
......@@ -17,7 +16,7 @@ function [ivar,vartan,options_] = set_stationary_variables_list(options_,M_)
% SPECIAL REQUIREMENTS
% None.
% Copyright (C) 2007-2011 Dynare Team
% Copyright (C) 2007-2012 Dynare Team
%
% This file is part of Dynare.
%
......
......@@ -33,7 +33,7 @@ switch info
case {4,5}
oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_);
case 6
[ivar,vartan] = set_stationary_variables_list(options_,M_);
[ivar,vartan] = get_variables_list(options_,M_);
nvar = length(ivar);
oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_,nvar,vartan);
otherwise
......
......@@ -34,7 +34,7 @@ switch info
case {4,5}
oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_);
case 6
[ivar,vartan] = set_stationary_variables_list(options_,M_);
[ivar,vartan] = get_variables_list(options_,M_);
nvar = length(ivar);
oo_ = job(type,SampleSize,arg1,arg2,arg3,options_,M_,oo_,nvar,vartan);
otherwise
......
Supports Markdown
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