The Elk Code
 
Loading...
Searching...
No Matches
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
6subroutine writeevsp
7use modmain
8implicit none
9! local variables
10integer is,ist
11! solve the atomic Dirac-Kohn-Sham ground-state for all species
12call init0
13! write out the atomic eigenvalues for each species
14open(50,file='EVALSP.OUT',form='FORMATTED')
15write(50,*)
16write(50,'("Kohn-Sham-Dirac eigenvalues for all atomic species")')
17write(50,*)
18write(50,'("Exchange-correlation functional : ",3I6)') xctsp(:)
19do 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
26end do
27close(50)
28write(*,*)
29write(*,'("Info(writeevsp)")')
30write(*,'(" Kohn-Sham-Dirac eigenvalues written to EVALSP.OUT for all atomic &
31 &species")')
32end subroutine
33
subroutine init0
Definition init0.f90:10
integer, dimension(maxstsp, maxspecies) lsp
Definition modmain.f90:123
integer, dimension(maxstsp, maxspecies) nsp
Definition modmain.f90:121
integer, dimension(maxspecies) nstsp
Definition modmain.f90:113
integer, dimension(3) xctsp
Definition modmain.f90:142
character(64), dimension(maxspecies) spsymb
Definition modmain.f90:78
integer, dimension(maxstsp, maxspecies) ksp
Definition modmain.f90:125
real(8), dimension(maxstsp, maxspecies) evalsp
Definition modmain.f90:131
integer nspecies
Definition modmain.f90:34
subroutine writeevsp
Definition writeevsp.f90:7