The Elk Code
charkpa.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2025 Wenhan Chen, 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
pure subroutine
charkpa
(ikpa,evecu,chkpa)
7
use
modmain
8
use
modulr
9
implicit none
10
! arguments
11
integer
,
intent(in)
:: ikpa
12
complex(8)
,
intent(in)
:: evecu(
nstulr
,
nstulr
)
13
real(8)
,
intent(out)
:: chkpa(
nstulr
)
14
! local arguments
15
integer
ist,jst,i
16
real(8)
sm
17
do
jst=1,
nstulr
18
sm=0.d0
19
do
ist=1,
nstsv
20
i=(ikpa-1)*
nstsv
+ist
21
sm=sm+evecu(i,jst)%re**2+evecu(i,jst)%im**2
22
end do
23
chkpa(jst)=sm
24
end do
25
end subroutine
26
modulr::nstulr
integer nstulr
Definition:
modulr.f90:95
modmain
Definition:
modmain.f90:6
modmain::nstsv
integer nstsv
Definition:
modmain.f90:889
charkpa
pure subroutine charkpa(ikpa, evecu, chkpa)
Definition:
charkpa.f90:7
modulr
Definition:
modulr.f90:6
charkpa.f90
Generated by
1.8.14