The Elk Code
Loading...
Searching...
No Matches
k_vwlb.f90
Go to the documentation of this file.
1
2
! Copyright (C) 2021 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
3
! This file is distributed under the terms of the GNU General Public License.
4
! See the file COPYING for license details.
5
6
pure
subroutine
k_vwlb
(n,rho,grho2,tau)
7
implicit none
8
! arguments
9
integer
,
intent(in)
:: n
10
real
(8),
intent(in)
:: rho(n),grho2(n)
11
real
(8),
intent(inout)
:: tau(n)
12
! local variables
13
integer
i
14
real
(8) t1
15
! enforce the von Weizsacker lower bound
16
do
i=1,n
17
t1=(1.d0/8.d0)*grho2(i)/rho(i)
18
if
(tau(i) < t1) tau(i)=t1
19
end do
20
end subroutine
21
k_vwlb
pure subroutine k_vwlb(n, rho, grho2, tau)
Definition
k_vwlb.f90:7
k_vwlb.f90
Generated by
1.9.8