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
6pure subroutine k_vwlb(n,rho,grho2,tau)
7implicit none
8! arguments
9integer, intent(in) :: n
10real(8), intent(in) :: rho(n),grho2(n)
11real(8), intent(inout) :: tau(n)
12! local variables
13integer i
14real(8) t1
15! enforce the von Weizsacker lower bound
16do i=1,n
17 t1=(1.d0/8.d0)*grho2(i)/rho(i)
18 if (tau(i) < t1) tau(i)=t1
19end do
20end subroutine
21
pure subroutine k_vwlb(n, rho, grho2, tau)
Definition k_vwlb.f90:7