12integer,
intent(in) :: ik,iq,is,ia,ip
13complex(8),
intent(out) :: devecsv(nstsv,nstsv)
18character(256) fext,fname
22fname=trim(
scrpath)//
'DEVECSV'//trim(fext)
26 call getrd(fname,ik,tgs,v1=vkl_,n1=nstsv_,nzv=nstsv*nstsv,zva=devecsv)
30inquire(iolength=recl) vkl_,nstsv_,devecsv
31open(226,
file=fname,form=
'UNFORMATTED',access=
'DIRECT',recl=recl)
32read(226,rec=ik) vkl_,nstsv_,devecsv
36t1=abs(
vkl(1,ik)-vkl_(1))+abs(
vkl(2,ik)-vkl_(2))+abs(
vkl(3,ik)-vkl_(3))
39 write(*,
'("Error(getdevecsv): differing vectors for k-point ",I8)') ik
40 write(*,
'(" current : ",3G18.10)')
vkl(:,ik)
41 write(*,
'(" ",A," : ",3G18.10)') trim(fname),vkl_
45if (nstsv /= nstsv_)
then
47 write(*,
'("Error(getdevecsv): differing nstsv for k-point ",I8)') ik
48 write(*,
'(" current : ",I8)') nstsv
49 write(*,
'(" ",A," : ",I8)') trim(fname),nstsv_
real(8), dimension(:,:), allocatable vkl
subroutine getrd(fname, irec, tgs, n1, n2, n3, v1, v2, nrv, rva, nzv, zva)