Commit 7a16ab15 authored by Sébastien Villemot's avatar Sébastien Villemot

No longer report momemts in stoch_simul with order>=3 if periods not specified

Previously Dynare was reporting dummy theoretical moments
parent 38827443
......@@ -138,7 +138,10 @@ if options_.nomoments == 0
if PI_PCL_solver
PCL_Part_info_moments (0, PCL_varobs, oo_.dr, i_var);
elseif options_.periods == 0
disp_th_moments(oo_.dr,var_list);
% There is no code for theoretical moments at 3rd order
if options_.order <= 2
disp_th_moments(oo_.dr,var_list);
end
else
disp_moments(oo_.endo_simul,var_list);
end
......
......@@ -45,6 +45,10 @@ if nargin<5
nodecomposition = 0;
end
if options_.order >= 3
error('Theoretical moments not implemented above 2nd order')
end
endo_nbr = M_.endo_nbr;
exo_names_orig_ord = M_.exo_names_orig_ord;
if exist('OCTAVE_VERSION')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment