coarsen_control_lines Subroutine
public pure subroutine coarsen_control_lines(knot, degree, Xc, Wc, nc, dir, Xth, r, err, controls, weight_exponent, counts, tol, error_bound)
Remove knots transactionally in packed directional control lines. An explicit physical tolerance replaces A5.8's coefficient equality test. Each candidate and source are clamped for comparison, then reinserted on the call-entry interior knots, so one budget controls the complete update, including every earlier accepted request. Bounds follow nonnegative partition of unity, with no sampling or dense map.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(inout), | allocatable | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | allocatable | :: | Wc(:) | ||
| integer, | intent(in) | :: | nc(:) | |||
| integer, | intent(in) | :: | dir | |||
| real(kind=rk), | intent(in) | :: | Xth(:) | |||
| integer, | intent(in) | :: | r(:) | |||
| type(debug), | intent(inout) | :: | err | |||
| real(kind=rk), | intent(out), | allocatable | :: | controls(:,:) | ||
| integer, | intent(out) | :: | weight_exponent | |||
| integer, | intent(out), | allocatable | :: | counts(:) | ||
| real(kind=rk), | intent(in), | optional | :: | tol | ||
| real(kind=rk), | intent(out), | optional | :: | error_bound |