cheb_tensorize_ndm2 Subroutine

public subroutine cheb_tensorize_ndm2(var, nx, ny, dmat, tdm)

Tensorize the nodal derivative matrix for two variables in the domain [-1,1]x[-1,1].

Arguments

Type IntentOptional Attributes Name
character(len=1), intent(in) :: var

Independent variable {'x', 'y'}

integer, intent(in) :: nx

Degree of the polynomial along x and y directions

integer, intent(in) :: ny

Degree of the polynomial along x and y directions

real(kind=rp), intent(in), dimension(:,:) :: dmat

(nx+1, nx+1) or (ny+1, ny+1) Nodal derivative matrix in the domain [-1,1].

real(kind=rp), intent(out), dimension(:,:) :: tdm

Tensorized derivative matrix with nrows = ncols = (nx+1)*(ny+1)