Commit 430088cf authored by ratto's avatar ratto
Browse files

Always initialize oo_.dr with dynare_resolve!

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2998 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 106a48dd
......@@ -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);
......
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