Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

mjdgges: fix bug where qz_criterium was not taken into account if a t…

…hreshold argument is also passed
  • Loading branch information...
houtanb committed Oct 27, 2016
1 parent f38f9b0 commit e3fbefc616941d0df3624bfc49a1a743171f8814
Showing with 2 additions and 2 deletions.
  1. +2 −2 mex/sources/mjdgges/mjdgges.c
@@ -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]);
}

0 comments on commit e3fbefc

Please sign in to comment.
You can’t perform that action at this time.