-
Notifications
You must be signed in to change notification settings - Fork 17
/
readHmnR2bak.f90
68 lines (57 loc) · 1.41 KB
/
readHmnR2bak.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
subroutine readHmnR()
use para
implicit none
integer :: ir
irvec=0
ndegen=1
hmnr= zzero
! 0 0 0
ir= 1
irvec(1, ir)= 0
irvec(2, ir)= 0
hmnr(1, 1, ir)= m
hmnr(2, 2, ir)= -m
hmnr(1, 2, ir)= t0
hmnr(2, 1, ir)= t0
! 1 0
ir= 2
irvec(1, ir)= 1
irvec(2, ir)= 0
hmnr(1, 1, ir)= (cos(phi)-zi*sin(phi)) *t1
hmnr(2, 2, ir)= (cos(phi)+zi*sin(phi)) *t1
hmnr(1, 2, ir)= t0
! 0 1
ir= 3
irvec(1, ir)= 0
irvec(2, ir)= 1
hmnr(1, 1, ir)= (cos(phi)-zi*sin(phi)) *t1
hmnr(2, 2, ir)= (cos(phi)+zi*sin(phi)) *t1
hmnr(2, 1, ir)= t0
! 1 1
ir= 4
irvec(1, ir)= 1
irvec(2, ir)= 1
hmnr(1, 1, ir)= (cos(phi)+zi*sin(phi)) *t1
hmnr(2, 2, ir)= (cos(phi)-zi*sin(phi)) *t1
!-1 0
ir= 5
irvec(1, ir)=-1
irvec(2, ir)= 0
hmnr(1, 1, ir)= (cos(phi)+zi*sin(phi)) *t1
hmnr(2, 2, ir)= (cos(phi)-zi*sin(phi)) *t1
hmnr(2, 1, ir)= t0
! 0-1
ir= 6
irvec(1, ir)= 0
irvec(2, ir)=-1
hmnr(1, 1, ir)= (cos(phi)+zi*sin(phi)) *t1
hmnr(2, 2, ir)= (cos(phi)-zi*sin(phi)) *t1
hmnr(1, 2, ir)= t0
!-1-1
ir= 7
irvec(1, ir)=-1
irvec(2, ir)=-1
hmnr(1, 1, ir)= (cos(phi)-zi*sin(phi)) *t1
hmnr(2, 2, ir)= (cos(phi)+zi*sin(phi)) *t1
return
end subroutine