The Elk Code
 
Loading...
Searching...
No Matches
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:
9subroutine writelinen
10! !USES:
11use 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
20implicit none
21! local variables
22integer is,ia,ias,l,io,ilo
23open(50,file='LINENGY'//trim(filext),form='FORMATTED')
24do 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
44end do
45close(50)
46end subroutine
47!EOC
48
real(8), dimension(:,:,:), allocatable apwe
Definition modmain.f90:768
integer, dimension(maxspecies) natoms
Definition modmain.f90:36
character(256) filext
Definition modmain.f90:1300
integer, dimension(maxatoms, maxspecies) idxas
Definition modmain.f90:42
integer, dimension(0:maxlapw, maxspecies) apword
Definition modmain.f90:758
integer, dimension(maxlorbord, maxlorb, maxspecies) lorbdm
Definition modmain.f90:810
integer, dimension(maxapword, 0:maxlapw, maxspecies) apwdm
Definition modmain.f90:770
integer lmaxapw
Definition modmain.f90:197
character(64), dimension(maxspecies) spsymb
Definition modmain.f90:78
integer, dimension(maxlorb, maxspecies) lorbord
Definition modmain.f90:792
integer, dimension(maxspecies) nlorb
Definition modmain.f90:786
integer nspecies
Definition modmain.f90:34
integer, dimension(maxlorb, maxspecies) lorbl
Definition modmain.f90:796
real(8), dimension(:,:,:), allocatable lorbe
Definition modmain.f90:808
subroutine writelinen