Home > . > print_info.m

print_info

PURPOSE ^

Copyright (C) 2005 Michel Juillard

SYNOPSIS ^

function print_info(info)

DESCRIPTION ^

 Copyright (C) 2005 Michel Juillard

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Copyright (C) 2005 Michel Juillard
0002 %
0003 function print_info(info)
0004   global options_
0005 
0006   options_ = set_default_option(options_,'noprint',0);
0007   
0008   if ~options_.noprint
0009     if info(1) > 10 & info(1) < 20
0010       disp('Failure in dr_algo=2')
0011       info(1) = info(1) - 10;
0012     end
0013     switch info(1)
0014      case 1
0015       error(['The model doesn''t determine the current variables' ...
0016          ' uniquely'])
0017      case 2
0018       error(['MJDGGES returns the following error code' ...
0019          int2str(info(2))])
0020      case 3
0021       error(['Blanchard Kahn conditions are not satisfied: no stable' ...
0022          ' equilibrium'])
0023      case 4
0024       error(['Blanchard Kahn conditions are not satisfied:' ...
0025          ' indeterminacy'])
0026      case 5
0027       error(['Blanchard Kahn conditions are not satisfied:' ...
0028          ' indeterminacy due to rank failure'])
0029      case 20
0030       error(['Impossible to find the steady state. Either the model' ...
0031          ' doesn''t have a unique steady state of the guess values' ...
0032          ' are too far from the solution']) 
0033      case 30
0034       error('Variance can''t be computed')
0035      otherwise
0036       error('This case shouldn''t happen. Contact the authors of Dynare')
0037     end
0038   end
0039

Generated on Fri 16-Jun-2006 09:09:06 by m2html © 2003