Skip to content

Commit

Permalink
put AA null warning behind verbose check, closes #118
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Dec 18, 2019
1 parent 23b18ab commit 0fd7ea8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scs.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,9 @@ static ScsWork *init_work(const ScsData *d, const ScsCone *k) {
if (!(w->accel =
aa_init(2 * (w->m + w->n + 1), ABS(w->stgs->acceleration_lookback),
w->stgs->acceleration_lookback >= 0))) {
scs_printf("WARN: aa_init returned NULL, no acceleration applied.\n");
if (w->stgs->verbose) {
scs_printf("WARN: aa_init returned NULL, no acceleration applied.\n");
}
}
return w;
}
Expand Down

0 comments on commit 0fd7ea8

Please sign in to comment.