From a3fabaf91dec3a85222eaba6e425c838972cf808 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 21:50:30 +0000 Subject: [PATCH] lilypond-1.1.49 --- lily/ineq-constrained-qp.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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; } -- 2.39.5