The Elk Code
 
Loading...
Searching...
No Matches
genjtot.f90
Go to the documentation of this file.
1
2! Copyright (C) 2020 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 genjtot
7use modmain
8implicit none
9! local variables
10integer i
11! external functions
12real(8), external :: rfint
13if (.not.tjr) return
14! compute the total current in the unit cell
15do i=1,3
16 jtot(i)=rfint(jrmt(:,:,i),jrir(:,i))
17end do
18! total current magnitude
19jtotm=norm2(jtot(1:3))
20end subroutine
21
subroutine genjtot
Definition genjtot.f90:7
real(8), dimension(3) jtot
Definition modmain.f90:748
real(8) jtotm
Definition modmain.f90:748
logical tjr
Definition modmain.f90:620
real(8), dimension(:,:,:), allocatable jrmt
Definition modmain.f90:622
real(8), dimension(:,:), allocatable jrir
Definition modmain.f90:622
real(8) function rfint(rfmt, rfir)
Definition rfint.f90:7