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