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 
subroutine rmtavrg
Definition: rmtavrg.f90:7
real(8), dimension(maxspecies) rmt
Definition: modmain.f90:162
integer nspecies
Definition: modmain.f90:34
integer mrmtav
Definition: modmain.f90:156