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

Filter out cases where stochastic_solvers.m is called at higher order without k_order_solver

(cherry picked from commit 28b499af)
parent 4e88c61b
Branches
Tags
No related merge requests found
......@@ -29,7 +29,7 @@ function [dr,info] = stochastic_solvers(dr,task,M_,options_,oo_)
% none.
%
% Copyright (C) 1996-2017 Dynare Team
% Copyright (C) 1996-2018 Dynare Team
%
% This file is part of Dynare.
%
......@@ -57,6 +57,9 @@ if M_.hessian_eq_zero && local_order~=1
local_order = 1;
warning('stochastic_solvers: using order = 1 because Hessian is equal to zero');
end
if options_.order>2 && ~options_.k_order_solver
error('You need to set k_order_solver for order>2')
end
if (options_.aim_solver == 1) && (local_order > 1)
error('Option "aim_solver" is incompatible with order >= 2')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment