# HG changeset patch # User rafavzqz # Date 1436277168 0 # Node ID 2a027badd79491eaf4c96cb204585556f981bc09 # Parent 15cea85c6afda3a472adc086ef66ba7dbb39b6b9 Added a message id in the warning diff -r 15cea85c6afd -r 2a027badd794 extra/nurbs/inst/nrbderiv.m --- a/extra/nurbs/inst/nrbderiv.m Tue Jul 07 09:04:19 2015 +0000 +++ b/extra/nurbs/inst/nrbderiv.m Tue Jul 07 13:52:48 2015 +0000 @@ -221,7 +221,8 @@ dnurbs2 = [dnurbs2{:}]; end if (any (arrayfun(@(x) any(isnan(x.coefs(:)) | isinf(x.coefs(:))), dnurbs2))) - warning (['The structure for the second derivative contains Inf and/or NaN coefficients, ' ... + warning ('nrbderiv:SecondDerivative', ... + ['The structure for the second derivative contains Inf and/or NaN coefficients, ' ... 'probably due to low continuity at repeated knots. This should not affect the ' ... 'computation of the second derivatives, except at those knots.']) end