The Elk Code
writelinen.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: writelinen
8 ! !INTERFACE:
9 subroutine writelinen
10 ! !USES:
11 use modmain
12 ! !DESCRIPTION:
13 ! Writes the linearisation energies for all APW and local-orbital functions to
14 ! the file {\tt LINENGY.OUT}.
15 !
16 ! !REVISION HISTORY:
17 ! Created February 2004 (JKD)
18 !EOP
19 !BOC
20 implicit none
21 ! local variables
22 integer is,ia,ias,l,io,ilo
23 open(50,file='LINENGY'//trim(filext),form='FORMATTED')
24 do is=1,nspecies
25  do ia=1,natoms(is)
26  ias=idxas(ia,is)
27  write(50,*)
28  write(50,'("Species : ",I4," (",A,"), atom : ",I4)') is,trim(spsymb(is)),ia
29  write(50,'(" APW functions :")')
30  do l=0,lmaxapw
31  do io=1,apword(l,is)
32  write(50,'(" l = ",I2,", energy derivative = ",I2," : ",G18.10)') l, &
33  apwdm(io,l,is),apwe(io,l,ias)
34  end do
35  end do
36  write(50,'(" local-orbital functions :")')
37  do ilo=1,nlorb(is)
38  do io=1,lorbord(ilo,is)
39  write(50,'(" l.o. = ",I2,", l = ",I2,", energy derivative = ",I2,&
40  &" : ",G18.10)') ilo,lorbl(ilo,is),lorbdm(io,ilo,is),lorbe(io,ilo,ias)
41  end do
42  end do
43  end do
44 end do
45 close(50)
46 end subroutine
47 !EOC
48 
character(256) filext
Definition: modmain.f90:1301
integer, dimension(maxspecies) nlorb
Definition: modmain.f90:786
integer, dimension(maxatoms, maxspecies) idxas
Definition: modmain.f90:42
integer, dimension(maxapword, 0:maxlapw, maxspecies) apwdm
Definition: modmain.f90:770
integer lmaxapw
Definition: modmain.f90:197
subroutine writelinen
Definition: writelinen.f90:10
real(8), dimension(:,:,:), allocatable lorbe
Definition: modmain.f90:808
real(8), dimension(:,:,:), allocatable apwe
Definition: modmain.f90:768
integer, dimension(0:maxlapw, maxspecies) apword
Definition: modmain.f90:758
integer, dimension(maxspecies) natoms
Definition: modmain.f90:36
integer, dimension(maxlorb, maxspecies) lorbord
Definition: modmain.f90:792
integer nspecies
Definition: modmain.f90:34
integer, dimension(maxlorb, maxspecies) lorbl
Definition: modmain.f90:796
character(64), dimension(maxspecies) spsymb
Definition: modmain.f90:78
integer, dimension(maxlorbord, maxlorb, maxspecies) lorbdm
Definition: modmain.f90:810