The Elk Code
writechgru.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2019 T. Mueller, 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
writechgru
7
use
modmain
8
use
modulr
9
implicit none
10
! local variables
11
integer
is,ia,ias,ir
12
open
(50,file=
'CHARGERU.OUT'
,form=
'FORMATTED'
)
13
do
ir=1,
nqpt
14
write
(50,*)
15
write
(50,
'("R-point number ",I0," of ",I0)'
) ir,
nqpt
16
write
(50,
'("R-point (Cartesian coordinates) :")'
)
17
write
(50,
'(3G18.10)'
)
vrcu
(:,ir)
18
write
(50,
'("Charges :")'
)
19
write
(50,
'(" interstitial",T30,": ",G18.10)'
)
chgirru
(ir)
20
write
(50,
'(" muffin-tins")'
)
21
do
is=1,
nspecies
22
write
(50,
'(" species : ",I0," (",A,")")'
) is,trim(
spsymb
(is))
23
do
ia=1,
natoms
(is)
24
ias=
idxas
(ia,is)
25
write
(50,
'(" atom ",I0,T30,": ",G18.10)'
) ia,
chgmtru
(ias,ir)
26
end do
27
end do
28
write
(50,
'(" total charge",T30,": ",G18.10)'
)
chgtotru
(ir)
29
end do
30
close
(50)
31
end subroutine
32
modmain::nqpt
integer nqpt
Definition:
modmain.f90:528
modmain::idxas
integer, dimension(maxatoms, maxspecies) idxas
Definition:
modmain.f90:42
writechgru
subroutine writechgru
Definition:
writechgru.f90:7
modulr::chgmtru
real(8), dimension(:,:), allocatable chgmtru
Definition:
modulr.f90:55
modmain
Definition:
modmain.f90:6
modmain::natoms
integer, dimension(maxspecies) natoms
Definition:
modmain.f90:36
modulr::vrcu
real(8), dimension(:,:), allocatable vrcu
Definition:
modulr.f90:26
modmain::nspecies
integer nspecies
Definition:
modmain.f90:34
modulr
Definition:
modulr.f90:6
modulr::chgtotru
real(8), dimension(:), allocatable chgtotru
Definition:
modulr.f90:55
modulr::chgirru
real(8), dimension(:), allocatable chgirru
Definition:
modulr.f90:55
modmain::spsymb
character(64), dimension(maxspecies) spsymb
Definition:
modmain.f90:78
writechgru.f90
Generated by
1.8.14