Skip to content
Snippets Groups Projects
Commit f565a0a8 authored by Marco Ratto's avatar Marco Ratto
Browse files

bug fix and avoid missing output arguments and when smoother exits after non...

bug fix and avoid missing output arguments and when smoother exits after non convergence of simulation.
parent f0aa2fb8
Branches
Tags
1 merge request!2123occbin enhancements and bug fixes
......@@ -146,7 +146,8 @@ options_.noprint = true;
[~, out, ss] = occbin.solver(M_,oo_,options_);
if out.error_flag
fprintf('Occbin smoother:: simulation within smoother did not converge.\n')
print_info(error_flag, false, options_)
print_info(out.error_flag, options_.noprint, options_)
oo_.occbin.smoother.error_flag=1;
return;
end
regime_history = out.regime_history;
......@@ -211,7 +212,8 @@ while is_changed && maxiter>iter && ~is_periodic
[~, out, ss] = occbin.solver(M_,oo_,options_);
if out.error_flag
fprintf('Occbin smoother:: simulation within smoother did not converge.\n')
print_info(error_flag, false, options_)
print_info(out.error_flag, false, options_)
oo_.occbin.smoother.error_flag=1;
return;
end
regime_history = out.regime_history;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment