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:
9subroutine writekpts
10! !USES:
11use 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
20implicit none
21! local variables
22integer ik
23open(50,file='KPOINTS'//trim(filext),form='FORMATTED')
24write(50,'(I6," : nkpt; k-point, vkl, wkpt, nmat below")') nkpt
25do ik=1,nkpt
26 write(50,'(I6,4G18.10,2I8)') ik,vkl(:,ik),wkpt(ik),nmat(:,ik)
27end do
28close(50)
29end subroutine
30!EOC
31
real(8), dimension(:), allocatable wkpt
Definition modmain.f90:475
character(256) filext
Definition modmain.f90:1300
integer nkpt
Definition modmain.f90:461
real(8), dimension(:,:), allocatable vkl
Definition modmain.f90:471
integer, dimension(:,:), allocatable nmat
Definition modmain.f90:846
subroutine writekpts
Definition writekpts.f90:10