unpack_refinement_controls Subroutine
public pure subroutine unpack_refinement_controls(Xdir, nc, dir, ncoord, weight_exponent, Xc, Wc)
Reverse the tensor layout and dehomogenize when a final weight component is present. The layout and positive homogeneous weights must match the supplied counts. Polynomial input leaves Wc unallocated, for forwarding to optional weight arguments.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xdir(:,:) | |||
| integer, | intent(in) | :: | nc(:) | |||
| integer, | intent(in) | :: | dir | |||
| integer, | intent(in) | :: | ncoord | |||
| integer, | intent(in) | :: | weight_exponent | |||
| real(kind=rk), | intent(out), | allocatable | :: | Xc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Wc(:) |