The Elk Code
writeelmirep.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2025 J. K. Dewhurst and S. Sharma.
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
writeelmirep
(fext,elm)
7
use
modmain
8
implicit none
9
! arguments
10
character(*)
,
intent(in)
:: fext
11
real(8)
,
intent(in)
:: elm(lmmaxdb,natmtot)
12
! local variables
13
integer
is,ia,ias,l,m,lm
14
open
(50,file=
'ELMIREP'
//trim(fext),form=
'FORMATTED'
,action=
'WRITE'
)
15
do
ias=1,natmtot
16
is=
idxis
(ias)
17
ia=
idxia
(ias)
18
write
(50,*)
19
write
(50,
'("Species : ",I4," (",A,"), atom : ",I4)'
) is,trim(
spsymb
(is)),ia
20
lm=0
21
do
l=0,
lmaxdb
22
do
m=-l,l
23
lm=lm+1
24
write
(50,
'(" l = ",I2,", m = ",I2,", lm = ",I3," : ",G18.10)'
) l,m,lm, &
25
elm(lm,ias)
26
end do
27
end do
28
end do
29
close
(50)
30
end subroutine
31
modmain
Definition:
modmain.f90:6
modmain::lmaxdb
integer lmaxdb
Definition:
modmain.f90:1081
modmain::idxis
integer, dimension(maxatoms *maxspecies) idxis
Definition:
modmain.f90:44
writeelmirep
subroutine writeelmirep(fext, elm)
Definition:
writeelmirep.f90:7
modmain::idxia
integer, dimension(maxatoms *maxspecies) idxia
Definition:
modmain.f90:45
modmain::spsymb
character(64), dimension(maxspecies) spsymb
Definition:
modmain.f90:78
writeelmirep.f90
Generated by
1.8.14