The Elk Code
 
Loading...
Searching...
No Matches
c_pbe_gcor.f90
Go to the documentation of this file.
1
2! This routine is based on code written by K. Burke.
3
4elemental subroutine c_pbe_gcor(a,a1,b1,b2,b3,b4,rtrs,gg,ggrs)
5implicit none
6! arguments
7real(8), intent(in) :: a,a1,b1,b2,b3,b4,rtrs
8real(8), intent(out) :: gg,ggrs
9! local variables
10real(8) q0,q1,q2,q3
11q0=-2.d0*a*(1.d0+a1*rtrs*rtrs)
12q1=2.d0*a*rtrs*(b1+rtrs*(b2+rtrs*(b3+b4*rtrs)))
13q2=log(1.d0+1.d0/q1)
14gg=q0*q2
15q3=a*(b1/rtrs+2.d0*b2+rtrs*(3.d0*b3+4.d0*b4*rtrs))
16ggrs=-2.d0*a*a1*q2-q0*q3/(q1*(1.d0+q1))
17end subroutine
18
elemental subroutine c_pbe_gcor(a, a1, b1, b2, b3, b4, rtrs, gg, ggrs)
Definition c_pbe_gcor.f90:5