Commit 3a7119be authored by Marco Ratto's avatar Marco Ratto
Browse files

Fixed initialization of options related to identification.

parent 8015f1ce
......@@ -72,15 +72,22 @@ if options_gsa.identification,
options_gsa = set_default_option(options_gsa,'morris',1);
options_gsa = set_default_option(options_gsa,'trans_ident',0);
options_gsa = set_default_option(options_gsa,'load_ident_files',0);
options_gsa = set_default_option(options_gsa,'ar',3);
options_gsa = set_default_option(options_gsa,'useautocorr',1);
options_gsa = set_default_option(options_gsa,'ar',1);
options_gsa = set_default_option(options_gsa,'useautocorr',0);
options_.ar = options_gsa.ar;
if options_gsa.morris==2,
options_ident=[];
options_ident = set_default_option(options_ident,'load_ident_files',options_gsa.load_ident_files);
options_ident = set_default_option(options_ident,'useautocorr',options_gsa.useautocorr);
options_ident = set_default_option(options_ident,'ar',options_gsa.ar);
options_.options_ident = options_ident;
if isfield(options_,'options_ident'),
options_.options_ident.load_ident_files = options_gsa.load_ident_files;
options_.options_ident.useautocorr = options_gsa.useautocorr;
options_.options_ident.ar = options_gsa.ar;
options_ident=options_.options_ident;
else
options_ident=[];
options_ident = set_default_option(options_ident,'load_ident_files',options_gsa.load_ident_files);
options_ident = set_default_option(options_ident,'useautocorr',options_gsa.useautocorr);
options_ident = set_default_option(options_ident,'ar',options_gsa.ar);
options_.options_ident = options_ident;
end
end
end
......
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