Skip to content
Snippets Groups Projects
Commit 33d0f44c authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

model_diagnostics.m: provide warning that check of dynamic model is not...

model_diagnostics.m: provide warning that check of dynamic model is not supported for block option instead of crashing
parent 1a8382ad
Branches
Tags
No related merge requests found
...@@ -201,6 +201,7 @@ iyr0 = find(iyv) ; ...@@ -201,6 +201,7 @@ iyr0 = find(iyv) ;
it_ = M.maximum_lag + 1; it_ = M.maximum_lag + 1;
z = repmat(dr.ys,1,klen); z = repmat(dr.ys,1,klen);
if ~options.block
if options.order == 1 if options.order == 1
if (options.bytecode) if (options.bytecode)
[chck, junk, loc_dr] = bytecode('dynamic','evaluate', z,exo_simul, ... [chck, junk, loc_dr] = bytecode('dynamic','evaluate', z,exo_simul, ...
...@@ -245,6 +246,11 @@ if exist('hessian1','var') ...@@ -245,6 +246,11 @@ if exist('hessian1','var')
fprintf('\nMODEL_DIAGNOSTICS: The Hessian of the dynamic model contains Inf or NaN.\n') fprintf('\nMODEL_DIAGNOSTICS: The Hessian of the dynamic model contains Inf or NaN.\n')
end end
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 if problem_dummy==0
fprintf('MODEL_DIAGNOSTICS: No obvious problems with this mod-file were detected.\n') fprintf('MODEL_DIAGNOSTICS: No obvious problems with this mod-file were detected.\n')
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment