vendor/scs/test/run_from_file.c in scs-0.4.0 vs vendor/scs/test/run_from_file.c in scs-0.4.1

- old
+ new

@@ -58,11 +58,11 @@ scs_printf("Data read failure, exit.\n"); return -1; } for (i = 2; i < argc; i += 2) { if (argc < i + 2) { - scs_printf("Incorrect number of arguments supplied\n."); + scs_printf("Incorrect number of arguments supplied.\n"); SCS(free_data)(d); SCS(free_cone)(k); scs_free(stgs); @@ -76,9 +76,15 @@ scs_free(stgs); return -1; } } + if (!stgs->verbose) { + scs_printf( + "File data set `verbose` to 0, SCS will not output information. Add " + "`verbose 1` to call to override.\n"); + } + scs_printf("Solving problem.\n"); sol = (ScsSolution *)scs_calloc(1, sizeof(ScsSolution)); scs(d, k, stgs, sol, &info); SCS(free_data)(d); SCS(free_cone)(k);