Commit 36e3fb49 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Do not crash if an unknown optimization option is declared (replaced an error by a warning).

parent b685fe61
......@@ -282,7 +282,7 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation
case '''NumgradEpsilon'''
epsilon = str2double(options_list{2*(o-1)+2});
otherwise
error(['csminwel: Unknown option (' options_list{2*(o-1)+1} ')!'])
warning(['csminwel: Unknown option (' options_list{2*(o-1)+1} ')!'])
end
o = o + 1;
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