Treat exceptions in check
Calling check
together with noprint
overrides throwing out exceptions in printinfo
. This can lead to subsequent crashes due to calls like
eigenvalues_ = dr.eigval;
that try to access fields that are not set in this case.
My preference would be to locally override the noprint
option in check
by replacing
if info(1) ~= 0 && info(1) ~= 3 && info(1) ~= 4
print_info(info, options.noprint, options);
end
with
if info(1) ~= 0 && info(1) ~= 3 && info(1) ~= 4
print_info(info,1, options);
end
The typical reaon for using check
is to only continue if the check is passed. Overriding this by the noprint
-options seems unintentional and leads to subsequent trouble, see http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4891&p=14256#p14256