cheb_nod_deriv2 Subroutine

public subroutine cheb_nod_deriv2(nx, ny, dmx, dmy, f, fpx, fpy)

Calculates the derivative of a 2D function at the nodes.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nx

Number of nodes along x = nx+1 and along y = ny+1

integer, intent(in) :: ny

Number of nodes along x = nx+1 and along y = ny+1

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

((nx+1),(nx+1)) Differentiation matrix along x

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

((ny+1),(ny+1)) Differentiation matrix along y

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

(m,), where m = (nx+1)*(ny+1). Value of the function at the nodes.

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

(m,), where m = (nx+1)*(ny+1). Value of the derivatives at the nodes.

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

(m,), where m = (nx+1)*(ny+1). Value of the derivatives at the nodes.