The Elk Code
getevecuv.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2019 J. K. Dewhurst and S. Sharma.
3
! This file is distributed under the terms of the GNU General Public License.
4
! See the file COPYING for license details.
5
6
subroutine
getevecuv
(ikp,vpl,u,v)
7
use
modmain
8
implicit none
9
! arguments
10
integer
,
intent(in)
:: ikp
11
real(8)
,
intent(in)
:: vpl(3)
12
complex(8)
,
intent(out)
:: u(nstsv,nstsv),v(nstsv,nstsv)
13
! local variables
14
integer
isym,ik
15
integer
recl,nstsv_
16
real(8)
vkl_(3),t1
17
if
(ikp > 0)
then
18
ik=ikp
19
else
20
! find the equivalent k-point number and symmetry which rotates vkl to vpl
21
call
findkpt
(vpl,isym,ik)
22
end if
23
! find the record length
24
inquire
(iolength=recl) vkl_,nstsv_,u,v
25
!$OMP CRITICAL(u322)
26
open
(322,file=
'EVECUV.OUT'
,form=
'UNFORMATTED'
,access=
'DIRECT'
,recl=recl)
27
read
(322,rec=ik) vkl_,nstsv_,u,v
28
close
(322)
29
!$OMP END CRITICAL(u322)
30
t1=abs(
vkl
(1,ik)-vkl_(1))+abs(
vkl
(2,ik)-vkl_(2))+abs(
vkl
(3,ik)-vkl_(3))
31
if
(t1 >
epslat
)
then
32
write
(*,*)
33
write
(*,
'("Error(getevecuv): differing vectors for k-point ",I8)'
) ik
34
write
(*,
'(" current : ",3G18.10)'
)
vkl
(:,ik)
35
write
(*,
'(" EVECUV.OUT : ",3G18.10)'
) vkl_
36
write
(*,*)
37
stop
38
end if
39
if
(nstsv /= nstsv_)
then
40
write
(*,*)
41
write
(*,
'("Error(getevecuv): differing nstsv for k-point ",I8)'
) ik
42
write
(*,
'(" current : ",I8)'
) nstsv
43
write
(*,
'(" EVECUV.OUT : ",I8)'
) nstsv_
44
write
(*,*)
45
stop
46
end if
47
end subroutine
48
getevecuv
subroutine getevecuv(ikp, vpl, u, v)
Definition:
getevecuv.f90:7
modmain
Definition:
modmain.f90:6
modmain::vkl
real(8), dimension(:,:), allocatable vkl
Definition:
modmain.f90:471
modmain::epslat
real(8) epslat
Definition:
modmain.f90:24
findkpt
subroutine findkpt(vpl, isym, ik)
Definition:
findkpt.f90:7
getevecuv.f90
Generated by
1.8.14