Always initialize oo_.dr with dynare_resolve!

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2998 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
ratto 2009-09-29 16:24:14 +00:00
parent 106a48dd8a
commit 430088cf42
1 changed files with 20 additions and 20 deletions

View File

@ -36,28 +36,28 @@ if isfield(options_gsa,'mode_file'),
options_.mode_file=options_gsa.mode_file;
end
dynare_resolve;
if ~isempty(options_gsa.datafile) | isempty(bayestopt_),
options_.datafile = options_gsa.datafile;
if isfield(options_gsa,'first_obs'),
options_.first_obs=options_gsa.first_obs;
end
if isfield(options_gsa,'nobs'),
options_.nobs=options_gsa.nobs;
end
if isfield(options_gsa,'presample'),
options_.presample=options_gsa.presample;
end
if isfield(options_gsa,'prefilter'),
options_.prefilter=options_gsa.prefilter;
end
if isfield(options_gsa,'loglinear'),
options_.loglinear=options_gsa.loglinear;
end
options_.mode_compute = 0;
[data,rawdata]=dynare_estimation_init([],1);
% computes a first linear solution to set up various variables
dynare_resolve;
options_.datafile = options_gsa.datafile;
if isfield(options_gsa,'first_obs'),
options_.first_obs=options_gsa.first_obs;
end
if isfield(options_gsa,'nobs'),
options_.nobs=options_gsa.nobs;
end
if isfield(options_gsa,'presample'),
options_.presample=options_gsa.presample;
end
if isfield(options_gsa,'prefilter'),
options_.prefilter=options_gsa.prefilter;
end
if isfield(options_gsa,'loglinear'),
options_.loglinear=options_gsa.loglinear;
end
options_.mode_compute = 0;
[data,rawdata]=dynare_estimation_init([],1);
% computes a first linear solution to set up various variables
end
options_gsa = set_default_option(options_gsa,'identification',0);