The Elk Code
 
Loading...
Searching...
No Matches
sfuadd.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
6subroutine sfuadd(ik0,w,chkpa,sfu)
7use modmain
8use modulr
9implicit none
10! arguments
11integer, intent(in) :: ik0
12real(8), intent(in) :: w(nwplot),chkpa(nstulr)
13real(8), intent(inout) :: sfu(nwplot)
14! local variables
15integer ist,iw
16real(8) e,x,t0,t1
17! external functions
18real(8), external :: sdelta_lr
19t0=1.d0/swidth
20do ist=1,nstulr
21 e=evalu(ist,ik0)-efermi
22 t1=t0*chkpa(ist)
23 do iw=1,nwplot
24 x=(e-w(iw))*t0
25 sfu(iw)=sfu(iw)+t1*sdelta_lr(x)
26 end do
27end do
28end subroutine
29
real(8) efermi
Definition modmain.f90:904
real(8) swidth
Definition modmain.f90:892
real(8), dimension(:,:), allocatable evalu
Definition modulr.f90:96
elemental real(8) function sdelta_lr(x)
Definition sdelta_lr.f90:7
subroutine sfuadd(ik0, w, chkpa, sfu)
Definition sfuadd.f90:7