model_diagnostics.m: provide warning that check of dynamic model is not supported for block option instead of crashing

time-shift
Johannes Pfeifer 2016-12-09 20:17:19 +01:00 committed by Stéphane Adjemian (Lupi)
parent 1a8382adfb
commit 33d0f44c40
1 changed files with 47 additions and 41 deletions

View File

@ -201,6 +201,7 @@ iyr0 = find(iyv) ;
it_ = M.maximum_lag + 1;
z = repmat(dr.ys,1,klen);
if ~options.block
if options.order == 1
if (options.bytecode)
[chck, junk, loc_dr] = bytecode('dynamic','evaluate', z,exo_simul, ...
@ -245,6 +246,11 @@ if exist('hessian1','var')
fprintf('\nMODEL_DIAGNOSTICS: The Hessian of the dynamic model contains Inf or NaN.\n')
end
end
else
fprintf('\nMODEL_DIAGNOSTICS: This command currently does not support the block option for checking.\n')
fprintf('\nMODEL_DIAGNOSTICS: the dynamic model. You may want to disable it for doing model_diagnostics. Skipping this part.\n')
end
if problem_dummy==0
fprintf('MODEL_DIAGNOSTICS: No obvious problems with this mod-file were detected.\n')
end