Skip to content
ForCADDocumentation

append_bernstein_constraint Subroutine

public pure subroutine append_bernstein_constraint(conn, offsets, degree_a, degree_b, stride_a, stride_b, reverse_dir, knot_na, knot_nb, knot_ta1, knot_tb1, knot_ta2, knot_tb2, rowptr, split, col, val, row, pos, power, resolved)

Degree-complete Bernstein collocation on an oriented edge or face. Degrees and strides follow the two mapped tangents, then the normal. An edge uses a constant second tangent with zero storage stride.

Arguments

Type IntentOptional Attributes Name
type(multipatch_connection), intent(in) :: conn
integer, intent(in), contiguous :: offsets(:)
integer, intent(in) :: degree_a(3)
integer, intent(in) :: degree_b(3)
integer, intent(in) :: stride_a(3)
integer, intent(in) :: stride_b(3)
logical, intent(in) :: reverse_dir(2)
real(kind=rk), intent(in), contiguous :: knot_na(:)
real(kind=rk), intent(in), contiguous :: knot_nb(:)
real(kind=rk), intent(in), contiguous :: knot_ta1(:)
real(kind=rk), intent(in), contiguous :: knot_tb1(:)
real(kind=rk), intent(in), contiguous :: knot_ta2(:)
real(kind=rk), intent(in), contiguous :: knot_tb2(:)
integer, intent(inout), contiguous :: rowptr(:)
integer, intent(inout), contiguous :: split(:)
integer, intent(inout), contiguous :: col(:)
real(kind=rk), intent(inout), contiguous :: val(:)
integer, intent(inout) :: row
integer, intent(inout) :: pos
integer, intent(inout) :: power
logical, intent(out) :: resolved