-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathget_GLP.f90
87 lines (74 loc) · 3.19 KB
/
get_GLP.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
subroutine get_GLP
include 'com.txt'
if (NumGLP == 2) then
lambda(1) = -0.5773502691896257645091488
lambda(2) = 0.5773502691896257645091488
weight(1) = 1
weight(2) = 1
lambdaL(1) = -1
lambdaL(2) = 1
else if (NumGLP == 3) then
lambda(1) = -0.7745966692414833770358531
lambda(2) = 0
lambda(3) = 0.7745966692414833770358531
weight(1) = 0.5555555555555555555555556
weight(2) = 0.8888888888888888888888889
weight(3) = 0.5555555555555555555555556
else if (NumGLP == 4) then
lambda(1) = -0.8611363115940525752239465
lambda(2) = -0.3399810435848562648026658
!lambda(3) = 0.3399810435848562648026658
!lambda(4) = 0.8611363115940525752239465
weight(1) = 0.3478548451374538573730639
weight(2) = 0.6521451548625461426269361
!weight(3) = 0.6521451548625461426269361
!weight(4) = 0.3478548451374538573730639
! Gauss-Lobatto Points
lambdaL(1) = -1
lambdaL(2) = -0.447213595499957939282
!lambdaL(3) = 0.447213595499957939282
!lambdaL(4) = 1
else if (NumGLP == 5) then
lambda(1) = -0.9061798459386639927976269
lambda(2) = -0.5384693101056830910363144
lambda(3) = 0
!lambda(4) = 0.5384693101056830910363144
!lambda(5) = 0.9061798459386639927976269
weight(1) = 0.2369268850561890875142640
weight(2) = 0.4786286704993664680412915
weight(3) = 0.5688888888888888888888889
!weight(4) = 0.4786286704993664680412915
!weight(5) = 0.2369268850561890875142640
! Gauss-Lobatto Points
lambdaL(1) = -1
lambdaL(2) = -0.6546536707079771437983
lambdaL(3) = 0
!lambdaL(4) = 0.654653670707977143798
!lambdaL(5) = 1
else if (NumGLP == 6) then
lambda(1) = -0.9324695142031520278123016
lambda(2) = -0.6612093864662645136613996
!lambda(3) = -0.2386191860831969086305017
!lambda(4) = 0.2386191860831969086305017
!lambda(5) = 0.6612093864662645136613996
!lambda(6) = 0.9324695142031520278123016
weight(1) = 0.1713244923791703450402961
weight(2) = 0.3607615730481386075698335
!weight(3) = 0.4679139345726910473898703
!weight(4) = 0.4679139345726910473898703
!weight(5) = 0.3607615730481386075698335
!weight(6) = 0.1713244923791703450402961
!lambda(1) = -1
!lambda(2) = -0.8611363115940525752239465
!lambda(3) = -0.3399810435848562648026658
!lambda(4) = 0.3399810435848562648026658
!lambda(5) = 0.8611363115940525752239465
!lambda(6) = 1
!weight(1) = 0
!weight(2) = 0.3478548451374538573730639
!weight(3) = 0.6521451548625461426269361
!weight(4) = 0.6521451548625461426269361
!weight(5) = 0.3478548451374538573730639
!weight(6) = 0
end if
end subroutine get_GLP