pack_refinement_controls Subroutine
public pure subroutine pack_refinement_controls(Xc, Wc, nc, dir, Xdir, weight_exponent, err)
Pack any tensor direction as rows, with orthogonal lines then coordinates in columns. Counts, controls and optional stored weights must describe a valid geometry. Omitted or unallocated weights select polynomial controls. One radix-power gauge is shared by the complete homogeneous net and restored by unpacking. Prefer a gauge keeping every nonzero homogeneous component normal; use subnormal range only when necessary. An unrepresentable workspace returns empty Xdir and optionally sets err, before any geometry is changed.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xc(:,:) | |||
| real(kind=rk), | intent(in), | optional | :: | Wc(:) | ||
| integer, | intent(in) | :: | nc(:) | |||
| integer, | intent(in) | :: | dir | |||
| real(kind=rk), | intent(out), | allocatable | :: | Xdir(:,:) | ||
| integer, | intent(out) | :: | weight_exponent | |||
| type(debug), | intent(inout), | optional | :: | err |