mjdgges: fix bug where qz_criterium was not taken into account if a threshold argument is also passed

time-shift
Houtan Bastani 2016-10-27 11:18:56 +02:00
parent f38f9b0268
commit e3fbefc616
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2006-2012 Dynare Team
* Copyright (C) 2006-2016 Dynare Team
*
* This file is part of Dynare.
*
@ -127,7 +127,7 @@ mexFunction(int nlhs, mxArray *plhs[],
b = mxGetPr(prhs[1]);
/* set criterium for stable eigenvalues */
if (nrhs == 3 && mxGetM(prhs[2]) > 0)
if (nrhs >= 3 && mxGetM(prhs[2]) > 0)
{
criterium = *mxGetPr(prhs[2]);
}