logarithmic_reduction.m: add missing error codes

bgp-dev
Johannes Pfeifer 2022-10-11 16:12:03 +02:00
parent 39c561db96
commit 5226db4b3c
2 changed files with 8 additions and 1 deletions

View File

@ -217,7 +217,8 @@ if info(1)
if info(1) == 3 || info(1) == 4 || info(1) == 5 || info(1)==6 ||info(1) == 19 ||...
info(1) == 20 || info(1) == 21 || info(1) == 23 || info(1) == 26 || ...
info(1) == 81 || info(1) == 84 || info(1) == 85 || info(1) == 86 || ...
info(1) == 401 || info(1) == 402 || info(1) == 403 %cycle reduction
info(1) == 401 || info(1) == 402 || info(1) == 403 || ... %cycle reduction
info(1) == 411 || info(1) == 412 || info(1) == 413 % logarithmic reduction
%meaningful second entry of output that can be used
fval = Inf;
info(4) = info(2);

View File

@ -196,6 +196,12 @@ switch info(1)
message = 'Cycle reduction terminated with NaN/Inf.';
case 403
message = 'Cycle reduction converged to a solution that does not solve the matrix equation.';
case 411
message = 'Logarithmic reduction reached the iteration limit. Try increasing maxit.';
case 412
message = 'Logarithmic reduction terminated with NaN/Inf.';
case 413
message = 'Logarithmic reduction converged to a solution that does not solve the matrix equation.';
otherwise
message = 'This case shouldn''t happen. Contact the authors of Dynare';
end