Forecast: minor cleanup
parent
e2ce87b7d5
commit
02a65d5bbd
|
@ -16,7 +16,7 @@ function info = forecast(var_list,task)
|
||||||
% SPECIAL REQUIREMENTS
|
% SPECIAL REQUIREMENTS
|
||||||
% none
|
% none
|
||||||
|
|
||||||
% Copyright (C) 2003-2009 Dynare Team
|
% Copyright (C) 2003-2010 Dynare Team
|
||||||
%
|
%
|
||||||
% This file is part of Dynare.
|
% This file is part of Dynare.
|
||||||
%
|
%
|
||||||
|
@ -33,15 +33,12 @@ function info = forecast(var_list,task)
|
||||||
% 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/>.
|
||||||
|
|
||||||
global options_ dr_ oo_ M_
|
global options_ oo_ M_
|
||||||
|
|
||||||
info = 0;
|
info = 0;
|
||||||
|
|
||||||
old_options = options_;
|
|
||||||
|
|
||||||
maximum_lag = M_.maximum_lag;
|
maximum_lag = M_.maximum_lag;
|
||||||
|
|
||||||
|
|
||||||
endo_names = M_.endo_names;
|
endo_names = M_.endo_names;
|
||||||
if isempty(var_list)
|
if isempty(var_list)
|
||||||
var_list = endo_names(1:M_.orig_endo_nbr, :);
|
var_list = endo_names(1:M_.orig_endo_nbr, :);
|
||||||
|
@ -137,6 +134,3 @@ end
|
||||||
if options_.nograph == 0
|
if options_.nograph == 0
|
||||||
forecast_graphs(var_list);
|
forecast_graphs(var_list);
|
||||||
end
|
end
|
||||||
|
|
||||||
options_ = old_options;
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue