The Elk Code
rmtavrg.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2023 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
rmtavrg
7
use
modmain
8
implicit none
9
! local variables
10
integer
i
11
real(8)
ra
12
if
(
nspecies
<= 1)
return
13
do
i=1,
mrmtav
14
! average muffin-tin radius
15
ra=sum(
rmt
(1:
nspecies
))/
nspecies
16
! replace each muffin-tin radius with half itself plus the average
17
rmt
(1:
nspecies
)=0.5d0*(
rmt
(1:
nspecies
)+ra)
18
end do
19
end subroutine
20
rmtavrg
subroutine rmtavrg
Definition:
rmtavrg.f90:7
modmain
Definition:
modmain.f90:6
modmain::rmt
real(8), dimension(maxspecies) rmt
Definition:
modmain.f90:162
modmain::nspecies
integer nspecies
Definition:
modmain.f90:34
modmain::mrmtav
integer mrmtav
Definition:
modmain.f90:156
rmtavrg.f90
Generated by
1.8.14