Skip to content
Snippets Groups Projects
Verified Commit 2eb9475e authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

:bug: make sure output arguments are set before return

parent 8cc646fb
Branches
Tags
No related merge requests found
......@@ -82,11 +82,12 @@ if ischar(func0)
end
[fval0,exit_flag,gg,hh]=penalty_objective_function(x,func0,penalty,varargin{:});
fval=fval0;
if ~exit_flag
igg=NaN(nx);
disp_verbose('Bad initial parameter.',Verbose)
return
end
fval=fval0;
% initialize mr_gstep and mr_hessian
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment