The Elk Code
 
Loading...
Searching...
No Matches
getvcl1221.f90
Go to the documentation of this file.
1
2! Copyright (C) 2007-2008 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3! This file is distributed under the terms of the GNU General Public License.
4! See the file COPYING for license details.
5
6!BOP
7! !ROUTINE: getvcl1221
8! !INTERFACE:
9subroutine getvcl1221(ikp,vcl1221)
10! !USES:
11use modmain
12! !INPUT/OUTPUT PARAMETERS:
13! ikp : k-point from non-reduced set (in,integer)
14! vcl1221 : Coulomb matrix elements (out,real(nstsv,nstsv,nkpt))
15! !DESCRIPTION:
16! Retrieves Coulomb matrix elements of the type $V(1,2,2,1)$ from the file
17! {\tt VCL1221.OUT}.
18!
19! !REVISION HISTORY:
20! Created 2009 (Sharma)
21!EOP
22!BOC
23implicit none
24! arguments
25integer, intent(in) :: ikp
26real(8), intent(out) :: vcl1221(nstsv,nstsv,nkpt)
27! local variables
28integer recl
29! determine record length
30inquire(iolength=recl) vcl1221
31!$OMP CRITICAL(u260)
32open(260,file='VCL1221.OUT',form='UNFORMATTED',access='DIRECT',recl=recl)
33read(260,rec=ikp) vcl1221
34close(260)
35!$OMP END CRITICAL(u260)
36end subroutine
37!EOC
38
subroutine getvcl1221(ikp, vcl1221)