elemConn_Cn Interface
public interface elemConn_Cn
Build one-based connectivity from active knots and knot multiplicities.
In each direction, size(Xth)-1 supplies the number of active spans; the
numerical values in Xth are not inspected. Interior entries
vecKnot_mul(2:nelem) shift the first supported control index by the
stored knot multiplicity. Entry 1 and the final active-endpoint
multiplicity are not used. For a valid degree- spline direction,
the metadata must satisfy
where is the multiplicity at the interior active knot preceding element . The routines check only basic array dimensions; callers must provide consistent positive multiplicities and control counts. At multiplicity , the spline space has guaranteed continuity . Returned support indices are one-based, with direction 1 varying fastest.
Module Procedures
private pure subroutine cmp_elemConn_Cn_L(nnode, p, Xth, vecKnot_mul, elemConn)
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nnode |
Control count and nonnegative polynomial degree. |
||
| integer, | intent(in) | :: | p |
Control count and nonnegative polynomial degree. |
||
| real(kind=rk), | intent(in), | contiguous | :: | Xth(:) |
Active-knot metadata; only its size is used. |
|
| integer, | intent(in), | contiguous | :: | vecKnot_mul(:) |
Run data whose entries |
|
| integer, | intent(out), | allocatable | :: | elemConn(:,:) |
One-based connectivity |
private pure subroutine cmp_elemConn_Cn_S(nnode1, nnode2, p1, p2, Xth1, Xth2, vecKnot_mul1, vecKnot_mul2, elemConn)
Build surface connectivity as the tensor product of two span maps.
Rows and local controls both use direction-1-fastest ordering. The knot
values are not read; each directional size supplies its element count.
Directional control counts and multiplicities must satisfy the scalar
consistency relation documented by elemConn_Cn.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nnode1 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | nnode2 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | p1 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | p2 |
Directional control counts and nonnegative polynomial degrees. |
||
| real(kind=rk), | intent(in), | contiguous | :: | Xth1(:) |
Active-knot metadata; only the two array sizes are used. |
|
| real(kind=rk), | intent(in), | contiguous | :: | Xth2(:) |
Active-knot metadata; only the two array sizes are used. |
|
| integer, | intent(in), | contiguous | :: | vecKnot_mul1(:) |
Stored multiplicities corresponding to |
|
| integer, | intent(in), | contiguous | :: | vecKnot_mul2(:) |
Stored multiplicities corresponding to |
|
| integer, | intent(out), | allocatable | :: | elemConn(:,:) |
Direction-1-fastest one-based connectivity, or shape |
private pure subroutine cmp_elemConn_Cn_V(nnode1, nnode2, nnode3, p1, p2, p3, Xth1, Xth2, Xth3, vecKnot_mul1, vecKnot_mul2, vecKnot_mul3, elemConn)
Build volume connectivity as the tensor product of three span maps.
Rows and local controls both use direction-1-fastest ordering. Knot
values are not read; directional array sizes supply element counts.
Every directional control count and multiplicity vector must satisfy the
scalar consistency relation documented by elemConn_Cn.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nnode1 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | nnode2 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | nnode3 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | p1 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | p2 |
Directional control counts and nonnegative polynomial degrees. |
||
| integer, | intent(in) | :: | p3 |
Directional control counts and nonnegative polynomial degrees. |
||
| real(kind=rk), | intent(in), | contiguous | :: | Xth1(:) |
Active-knot metadata; only the three array sizes are used. |
|
| real(kind=rk), | intent(in), | contiguous | :: | Xth2(:) |
Active-knot metadata; only the three array sizes are used. |
|
| real(kind=rk), | intent(in), | contiguous | :: | Xth3(:) |
Active-knot metadata; only the three array sizes are used. |
|
| integer, | intent(in), | contiguous | :: | vecKnot_mul1(:) |
Stored multiplicities corresponding to the directional active knots. |
|
| integer, | intent(in), | contiguous | :: | vecKnot_mul2(:) |
Stored multiplicities corresponding to the directional active knots. |
|
| integer, | intent(in), | contiguous | :: | vecKnot_mul3(:) |
Stored multiplicities corresponding to the directional active knots. |
|
| integer, | intent(out), | allocatable | :: | elemConn(:,:) |
Direction-1-fastest one-based connectivity, or shape |