File: k_tfvw.f90

package info (click to toggle)
elkcode 10.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,672 kB
  • sloc: f90: 52,747; perl: 964; makefile: 352; sh: 296; python: 105; ansic: 67
file content (37 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

! Copyright (C) 2021 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
! This file is distributed under the terms of the GNU General Public License.
! See the file COPYING for license details.

!BOP
! !ROUTINE: k_tfvw
! !INTERFACE:
subroutine k_tfvw(n,rho,grho2,dtdr,dtdgr2)
! !INPUT/OUTPUT PARAMETERS:
!   n      : number of density points (in,integer)
!   rho    : spin-unpolarised charge density (in,real(n))
!   grho2  : |grad rho|^2 (in,real(n))
!   dtdr   : dtau/drho (out,real(n))
!   dtdgr2 : dtau/d|grad rho|^2 (out,real(n))
! !DESCRIPTION:
!   Calculates the derivatives $\partial\tau/\partial\rho$ and
!   $\partial\tau/\partial|\nabla\rho|^2$ of the gradient expansion of the
!   kinetic energy density $\tau$ for a set of points. See {\tt k\_tfvw1}.
!
! !REVISION HISTORY:
!   Created December 2021 (JKD)
!EOP
!BOC
implicit none
! arguments
integer, intent(in) :: n
real(8), intent(in) :: rho(n),grho2(n)
real(8), intent(out) :: dtdr(n),dtdgr2(n)
! local variables
integer i
do i=1,n
  call k_tfvw1(rho(i),grho2(i),dtdr(i),dtdgr2(i))
end do
end subroutine
!EOC