dynare_sensitivity.m: provide informative error message if no varexo are defined. Closes https://git.dynare.org/Dynare/dynare/issues/1651

time-shift
Johannes Pfeifer 2019-09-10 09:10:07 +02:00
parent 107be12543
commit 8752cf0002
1 changed files with 5 additions and 0 deletions

View File

@ -132,6 +132,11 @@ else
options_.qz_criterium = 1+1e-6;
end
end
if M_.exo_nbr==0
error('dynare_sensitivity does not support having no varexo in the model. As a workaround you could define a dummy exogenous variable.')
end
[make,my,day,punk,M_,options_,oo_] = dynare_resolve(M_,options_,oo_);
options_gsa = set_default_option(options_gsa,'identification',0);