Skip to content
Snippets Groups Projects
Commit 7a0e1340 authored by MichelJuillard's avatar MichelJuillard
Browse files

fixed bug in detection of near 0/0 eigenvalues

(cherry picked from commit 044d19c5)
parent 3e1a6188
Branches
Tags
No related merge requests found
...@@ -370,7 +370,7 @@ else % use original Dynare solver ...@@ -370,7 +370,7 @@ else % use original Dynare solver
end end
for i=1:nd for i=1:nd
if abs(ss(i,i)) < 1e-6 && abs(tt(i,i)) < 1e-6 if abs(ss(i,i)) < 1e-6 && abs(tt(i,i)) < 1e-6
info(7) = 1; info(1) = 7;
end end
end end
return return
......
...@@ -48,7 +48,7 @@ if ~noprint ...@@ -48,7 +48,7 @@ if ~noprint
error(['The Jacobian matrix evaluated at the steady state contains elements ' ... error(['The Jacobian matrix evaluated at the steady state contains elements ' ...
'that are not real or are infinite']) 'that are not real or are infinite'])
case 7 case 7
error(['One of the eigenvalue is is close to 0/0 (the absolute ' ... error(['One of the eigenvalues is is close to 0/0 (the absolute ' ...
'value of numerator and denominator is smaller than 1e-6).']) 'value of numerator and denominator is smaller than 1e-6).'])
case 19 case 19
error('The steadystate file did not compute the steady state (inconsistent deep parameters).') error('The steadystate file did not compute the steady state (inconsistent deep parameters).')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment