-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathgeneral.f90
50 lines (36 loc) · 1.33 KB
/
general.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
! Copyright (C) Dmitry Korotin [email protected]
module general
use parameters, only : dp, maxnnbrs
implicit none
save
!Crystal cell
real(dp) :: alat, cell(3,3)
real(dp), allocatable :: tau(:,:)
integer :: natoms
character(len=3), allocatable :: atomlabel(:)
!Hamiltonian
integer :: &
nkp, & ! number of k-points
hdim, & ! hamiltonian dimention
nspin !
real(dp), allocatable :: &
wk(:), & ! k-points weight (nkp)
xk(:,:) ! k-points coordinates in 2pi/a units (3,nkp)
complex(dp), allocatable :: h(:,:,:,:) ! Hamiltonian matrix (hdim,hdim,nkp,nspin)
!Basis
integer :: nblocks
integer, allocatable :: block_atom(:), block_dim(:), block_orbitals(:,:)
character, allocatable :: block_l(:)
integer, allocatable :: block_start(:)
!Other
real(dp) :: efermi
! Nearest neighbours
real(dp) :: &
taunew(3,maxnnbrs) ! positions of nearest neighbours
integer :: nnnbrs, & ! total number of nearest neighbours
parent(maxnnbrs) ! parent atom for every neighbour
! That is how the atomic orbitals are encoded in the system.am file
character(len=11) :: orbitals(16)
data orbitals/'s', 'y', 'z', 'x', 'xy', 'yz', '3z^2-1', 'xz', 'x^2-y^2', 'y(3x^2-y^2)', 'xyz', &
'y(5z^2-1)', 'z(5z^2-3)', 'x(5z^2-1)', 'z(x^2-y^2)', 'x(3y^2-x^2)'/
end module general