diff --git a/src/aa.c b/src/aa.c index 4d65627f..061b9d1b 100644 --- a/src/aa.c +++ b/src/aa.c @@ -142,7 +142,6 @@ aa_float aa_apply(aa_float *f, const aa_float *x, AaWork *a) { } a->iter++; - if (a->iter % a->interval == 0) { /* reset to average */ if (a->verbosity > 0) { diff --git a/src/scs.c b/src/scs.c index c8566b0f..67a7b707 100644 --- a/src/scs.c +++ b/src/scs.c @@ -896,13 +896,12 @@ static ScsWork *init_work(const ScsData *d, const ScsCone *k, } if (w->stgs->acceleration_lookback) { /* TODO(HACK!) negative acceleration_lookback interpreted as type-II */ - if (!(w->accel = aa_init(l, ABS(w->stgs->acceleration_lookback), - w->stgs->acceleration_lookback > 0, - w->stgs->acceleration_lookback > 0 - ? AA_REGULARIZATION_TYPE_1 - : AA_REGULARIZATION_TYPE_2, - AA_RELAXATION, AA_SAFEGUARD_FACTOR, - AA_MAX_WEIGHT_NORM, VERBOSITY))) { + if (!(w->accel = aa_init( + l, ABS(w->stgs->acceleration_lookback), + w->stgs->acceleration_lookback > 0, + w->stgs->acceleration_lookback > 0 ? AA_REGULARIZATION_TYPE_1 + : AA_REGULARIZATION_TYPE_2, + AA_RELAXATION, AA_SAFEGUARD_FACTOR, AA_MAX_WEIGHT_NORM, 1))) { if (w->stgs->verbose) { scs_printf("WARN: aa_init returned NULL, no acceleration applied.\n"); }