From: fred Date: Tue, 26 Mar 2002 21:50:30 +0000 (+0000) Subject: lilypond-1.1.49 X-Git-Tag: release/1.5.59~2403 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a3fabaf91dec3a85222eaba6e425c838972cf808;p=lilypond.git lilypond-1.1.49 --- diff --git a/lily/ineq-constrained-qp.cc b/lily/ineq-constrained-qp.cc index 7de0df5951..3b4bae9baf 100644 --- a/lily/ineq-constrained-qp.cc +++ b/lily/ineq-constrained-qp.cc @@ -212,8 +212,17 @@ Ineq_constrained_qp::constraint_solve (Vector start) const } else if (m<0) { - assert (gradient.norm() < EPS) ; - + Real n =gradient.norm(); + if (n >= EPS) + { + programming_error ("Huh? Gradient should be zero "); + act.degenerate_count_i_ ++; + } + else if (n <0) + { + programming_error ("Huh? Norm should be positive"); + act.degenerate_count_i_++; + } break; }