The Elk Code
 
Loading...
Searching...
No Matches
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
6subroutine rmtavrg
7use modmain
8implicit none
9! local variables
10integer i
11real(8) ra
12if (nspecies <= 1) return
13do 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)
18end do
19end subroutine
20
real(8), dimension(maxspecies) rmt
Definition modmain.f90:162
integer mrmtav
Definition modmain.f90:156
integer nspecies
Definition modmain.f90:34
subroutine rmtavrg
Definition rmtavrg.f90:7