Skip to content
ForCADDocumentation

refinement_operators Subroutine

public pure subroutine refinement_operators(A, nc_old, nc_new, dir, ncoord, Wc_old, Wc_new, B, Bs)

Lift a directional refinement map into the stored tensor control order. Bs=D_new^(-1)A_tensorD_old maps Euclidean controls at fixed weights; B=Bs (x) I_ncoord uses point-major coordinate packing. Unallocated weights represent a polynomial space. Counts and weights must match the map. Only requested outputs allocate; B alone does not require a dense Bs.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: A(:,:)
integer, intent(in) :: nc_old(:)
integer, intent(in) :: nc_new(:)
integer, intent(in) :: dir
integer, intent(in) :: ncoord
real(kind=rk), intent(in), allocatable :: Wc_old(:)
real(kind=rk), intent(in), allocatable :: Wc_new(:)
real(kind=rk), intent(out), optional, allocatable :: B(:,:)
real(kind=rk), intent(out), optional, allocatable :: Bs(:,:)