Skip to content

Commit d2ef38b

Browse files
committed
fix syev failure bug, closes #238
1 parent 0d0c049 commit d2ef38b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cones.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ char *SCS(get_cone_header)(const ScsCone *k) {
331331
static scs_int set_up_sd_cone_work_space(ScsConeWork *c, const ScsCone *k) {
332332
scs_int i;
333333
#ifdef USE_LAPACK
334-
blas_int n_max = 0;
334+
blas_int n_max = 1;
335335
blas_int neg_one = -1;
336336
blas_int info = 0;
337337
scs_float wkopt = 0.0;
@@ -356,7 +356,7 @@ static scs_int set_up_sd_cone_work_space(ScsConeWork *c, const ScsCone *k) {
356356
&info);
357357

358358
if (info != 0) {
359-
scs_printf("FATAL: syev failure, info = %li\n", (long)info);
359+
scs_printf("FATAL: syev workspace query failure, info = %li\n", (long)info);
360360
return -1;
361361
}
362362
c->lwork = (blas_int)(wkopt + 1); /* +1 for int casting safety */

0 commit comments

Comments
 (0)