GaussJacobiQuad 0.1.0
Main Page
Related Pages
Modules
Modules List
Module Members
All
a
c
d
e
f
g
h
i
j
m
n
p
q
r
s
t
Functions/Subroutines
Variables
a
c
d
e
f
g
h
i
n
p
q
r
s
t
Data Types List
Data Types List
Data Types
Data Fields
All
Functions/Subroutines
Variables
Files
File List
File Members
All
Functions/Subroutines
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
test
test_simple_rec.f90
Go to the documentation of this file.
1
program
test_simple_rec
2
use
gaussjacobiquad
3
implicit none
4
integer
,
parameter
:: n = 5
5
real
(dp),
parameter
:: a = 0.0_dp, b = 12.0_dp
6
real
(dp),
dimension(n)
:: x, w
7
integer
:: i
8
open
(unit=10, file=
'gauss_jacobi_output.txt'
, status=
'unknown'
)
9
10
call
gauss_jacobi
(n, a, b, x, w)
11
12
do
i = 1, n
13
write
(10, *)
'Root: '
, x(i),
' Weight: '
, w(i)
14
print
'(1X, A, 1P, E24.17, 2X, A, 1P, E23.17)'
,
'Root: '
, x(i),
'Weight: '
, w(i)
15
end do
16
17
close
(10)
18
end program
test_simple_rec
gaussjacobiquad
Overall driver for Gauss-Jacobi quadrature.
Definition:
GaussJacobiQuad.f90:24
gaussjacobiquad::gauss_jacobi
subroutine gauss_jacobi(npts, alpha, beta, x, wts, method)
Compute the Gauss-Jacobi quadrature nodes and weights.
Definition:
GaussJacobiQuad.f90:51
test_simple_rec
program test_simple_rec
Definition:
test_simple_rec.f90:1
Code