The Elk Code
 
Loading...
Searching...
No Matches
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
6pure subroutine charkpa(ikpa,evecu,chkpa)
7use modmain
8use modulr
9implicit none
10! arguments
11integer, intent(in) :: ikpa
12complex(8), intent(in) :: evecu(nstulr,nstulr)
13real(8), intent(out) :: chkpa(nstulr)
14! local arguments
15integer ist,jst,i
16real(8) sm
17do 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
24end do
25end subroutine
26
pure subroutine charkpa(ikpa, evecu, chkpa)
Definition charkpa.f90:7
integer nstsv
Definition modmain.f90:886
integer nstulr
Definition modulr.f90:94