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
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
genjtot
subroutine genjtot
Definition
genjtot.f90:7
modmain
Definition
modmain.f90:6
modmain::jtot
real(8), dimension(3) jtot
Definition
modmain.f90:748
modmain::jtotm
real(8) jtotm
Definition
modmain.f90:748
modmain::tjr
logical tjr
Definition
modmain.f90:620
modmain::jrmt
real(8), dimension(:,:,:), allocatable jrmt
Definition
modmain.f90:622
modmain::jrir
real(8), dimension(:,:), allocatable jrir
Definition
modmain.f90:622
rfint
real(8) function rfint(rfmt, rfir)
Definition
rfint.f90:7
genjtot.f90
Generated by
1.9.8