Commit bfde0280 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Reset order=1 for all of stoch_simul.m if the Hessian is 0

Prevents various crashes where functions called rely on fields existing at order>1

(cherry picked from commit 0f84dadb)
parent 4b68cc1c
......@@ -36,6 +36,11 @@ if options_.order == 1
options_.replic = 1;
if M_.hessian_eq_zero && options_.order~=1
options_.order = 1;
warning('stoch_simul: using order = 1 because Hessian is equal to zero');
if isempty(options_.qz_criterium)
options_.qz_criterium = 1+1e-6;
Supports Markdown
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