6subroutine xc_wc06(n,rho,grho,g2rho,g3rho,ex,ec,vx,vc)
9integer,
intent(in) :: n
10real(8),
intent(in) :: rho(n),grho(n),g2rho(n),g3rho(n)
11real(8),
intent(out) :: ex(n),ec(n),vx(n),vc(n)
14real(8),
parameter :: pi=3.1415926535897932385d0
15real(8),
parameter :: thrd=1.d0/3.d0
17real(8),
parameter :: beta=0.06672455060314922d0
18real(8) r,grho_,g2rho_,g3rho_
19real(8) kf,s,u,v,rs,z,g
20real(8) ks,ksg,t,uu,vv,ww
27 kf=(r*3.d0*pi**2)**thrd
29 u=g3rho_/((r**2)*(2.d0*kf)**3)
30 v=g2rho_/(r*(2.d0*kf)**2)
32 call x_wc06(r,s,u,v,ex(i),vx(i))
34 rs=(3.d0/(4.d0*pi*r))**thrd
40 uu=g3rho_/((r**2)*ksg**3)
43 call c_pbe(beta,rs,z,t,uu,vv,ww,ec(i),vc(i),vc(i))
subroutine c_pbe(beta, rs, z, t, uu, vv, ww, ec, vcup, vcdn)
subroutine xc_wc06(n, rho, grho, g2rho, g3rho, ex, ec, vx, vc)