The Elk Code
writeevalu.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2018 T. Mueller, 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 subroutine writeevalu
7 use modmain
8 use modulr
9 implicit none
10 ! local variables
11 integer ik0,ik,ist
12 ! write out the valence eigenvalues
13 open(50,file='EIGVALU.OUT',form='FORMATTED')
14 write(50,'(I6," : nkpt0")') nkpt0
15 write(50,'(I6," : nstulr")') nstulr
16 do ik0=1,nkpt0
17 ! central k-point
18  ik=(ik0-1)*nkpa+1
19  write(50,*)
20  write(50,'(I6,3G18.10," : k-point, vkl")') ik0,vkl(:,ik)
21  write(50,'(" (state, eigenvalue and occupancy below)")')
22  do ist=1,nstulr
23  write(50,'(I6,2G18.10)') ist,evalu(ist,ik0),occulr(ist,ik0)
24  end do
25 end do
26 close(50)
27 end subroutine
28 
integer nstulr
Definition: modulr.f90:95
integer nkpt0
Definition: modulr.f90:18
subroutine writeevalu
Definition: writeevalu.f90:7
real(8), dimension(:,:), allocatable occulr
Definition: modulr.f90:99
real(8), dimension(:,:), allocatable vkl
Definition: modmain.f90:471
Definition: modulr.f90:6
integer nkpa
Definition: modulr.f90:24
real(8), dimension(:,:), allocatable evalu
Definition: modulr.f90:97