The Elk Code
writeevsp.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2015 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 writeevsp
7 use modmain
8 implicit none
9 ! local variables
10 integer is,ist
11 ! solve the atomic Dirac-Kohn-Sham ground-state for all species
12 call init0
13 ! write out the atomic eigenvalues for each species
14 open(50,file='EVALSP.OUT',form='FORMATTED')
15 write(50,*)
16 write(50,'("Kohn-Sham-Dirac eigenvalues for all atomic species")')
17 write(50,*)
18 write(50,'("Exchange-correlation functional : ",3I6)') xctsp(:)
19 do is=1,nspecies
20  write(50,*)
21  write(50,'("Species : ",I4," (",A,")",I4)') is,trim(spsymb(is))
22  do ist=1,nstsp(is)
23  write(50,'(" n = ",I2,", l = ",I2,", k = ",I2," : ",G18.10)') nsp(ist,is), &
24  lsp(ist,is),ksp(ist,is),evalsp(ist,is)
25  end do
26 end do
27 close(50)
28 write(*,*)
29 write(*,'("Info(writeevsp)")')
30 write(*,'(" Kohn-Sham-Dirac eigenvalues written to EVALSP.OUT for all atomic &
31  &species")')
32 end subroutine
33 
integer, dimension(maxstsp, maxspecies) ksp
Definition: modmain.f90:125
integer, dimension(maxstsp, maxspecies) lsp
Definition: modmain.f90:123
integer, dimension(3) xctsp
Definition: modmain.f90:142
subroutine writeevsp
Definition: writeevsp.f90:7
real(8), dimension(maxstsp, maxspecies) evalsp
Definition: modmain.f90:131
integer, dimension(maxstsp, maxspecies) nsp
Definition: modmain.f90:121
integer nspecies
Definition: modmain.f90:34
integer, dimension(maxspecies) nstsp
Definition: modmain.f90:113
subroutine init0
Definition: init0.f90:10
character(64), dimension(maxspecies) spsymb
Definition: modmain.f90:78