Skip to main content

Jacobi1D example 11

This example shows the usage of [[Jacobi1D_]] class. We test GaussLobattoQuadrature function in this routine, which returns the Gauss-Lobatto Quadrature points for Jacobi polynomial.

Modules and classes

  • [[Jacobi1D_]]

Usage

PROGRAM main
use easifemBase
use easifemClasses
implicit none
type(Jacobi1D_) :: obj
real( dfp ), allocatable :: x( :, : )
integer( i4b ) :: n
real( dfp ), parameter :: alpha=0.0, beta=0.0

n=1

  n = 1
obj=Jacobi1D(varname="x", n=n, alpha=alpha, beta=beta)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )

n=2

  n = 2
obj=Jacobi1D(varname="x", n=n, alpha=alpha, beta=beta)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )

n=3

  n = 3
obj=Jacobi1D(varname="x", n=n, alpha=alpha, beta=beta)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )

n=4

  n = 4
obj=Jacobi1D(varname="x", n=n, alpha=alpha, beta=beta)
x = obj%GaussLobattoQuadrature()
call display( x, "pt | wt for n="//tostring(n) )
END PROGRAM main