The Elk Code
Loading...
Searching...
No Matches
writekpts.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2002-2005 J. K. Dewhurst, S. Sharma and C. Ambrosch-Draxl.
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: writekpts
8
! !INTERFACE:
9
subroutine
writekpts
10
! !USES:
11
use
modmain
12
! !DESCRIPTION:
13
! Writes the $k$-points in lattice coordinates, weights and number of
14
! ${\bf G+k}$-vectors to the file {\tt KPOINTS.OUT}.
15
!
16
! !REVISION HISTORY:
17
! Created June 2003 (JKD)
18
!EOP
19
!BOC
20
implicit none
21
! local variables
22
integer
ik
23
open
(50,file=
'KPOINTS'
//trim(
filext
),form=
'FORMATTED'
)
24
write
(50,
'(I6," : nkpt; k-point, vkl, wkpt, nmat below")'
)
nkpt
25
do
ik=1,
nkpt
26
write
(50,
'(I6,4G18.10,2I8)'
) ik,
vkl
(:,ik),
wkpt
(ik),
nmat
(:,ik)
27
end do
28
close
(50)
29
end subroutine
30
!EOC
31
modmain
Definition
modmain.f90:6
modmain::wkpt
real(8), dimension(:), allocatable wkpt
Definition
modmain.f90:475
modmain::filext
character(256) filext
Definition
modmain.f90:1300
modmain::nkpt
integer nkpt
Definition
modmain.f90:461
modmain::vkl
real(8), dimension(:,:), allocatable vkl
Definition
modmain.f90:471
modmain::nmat
integer, dimension(:,:), allocatable nmat
Definition
modmain.f90:846
writekpts
subroutine writekpts
Definition
writekpts.f90:10
writekpts.f90
Generated by
1.9.8