Merge branch 'lnsrch_display' of git.dynare.org:JohannesPfeifer/dynare

Ref. !1943
pac-components
Sébastien Villemot 2021-10-12 14:09:10 +02:00
commit eca7a25891
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 1 deletions

View File

@ -64,8 +64,10 @@ if ~isfinite(summ)
fprintf('\nAn infinite element was encountered when trying to solve equation(s) %s \n',eq_number_string)
fprintf('with respect to the variable(s): %s.\n',var_string)
fprintf('The values of the endogenous variables when the problem was encountered were:\n')
label_width=size(char(Model.endo_names),2)+2;
label_string=sprintf('%%-%us %%8.4g \\n',label_width);
for ii=1:length(xold)
fprintf('%-s % 8.4g \n', Model.endo_names{ii}, xold(ii));
fprintf(label_string, Model.endo_names{ii}, xold(ii));
end
skipline();
end