ChebyshevFirst1D example 9
This example shows the usage of [[ChebyshevFirst1D_]] class. We test GaussLobattoQuadrature
function in this routine, which returns the Gauss-Lobatto Quadrature points for Chebyshev1 polynomial.
Modules and classes
- [[ChebyshevFirst1D_]]
Usage
PROGRAM main
use easifemBase
use easifemClasses
implicit none
type(ChebyshevFirst1D_) :: obj
real( dfp ), allocatable :: x( :, : )
integer( i4b ) :: n
n=1
n = 1
obj=ChebyshevFirst1D(varname="x", n=n)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )
n=2
n = 2
obj=ChebyshevFirst1D(varname="x", n=n)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )
n=3
n = 3
obj=ChebyshevFirst1D(varname="x", n=n)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )
n=4
n = 4
obj=ChebyshevFirst1D(varname="x", n=n)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )
END PROGRAM main