The Elk Code
wsplint.f90
Go to the documentation of this file.
1 
2 ! Copyright (C) 2019 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 subroutine wsplint(n,x,w)
7 implicit none
8 ! arguments
9 integer, intent(in) :: n
10 real(8), intent(in) :: x(n)
11 real(8), intent(out) :: w(n)
12 ! local variables
13 integer i
14 ! automatic arrays
15 real(8) f(9)
16 ! external functions
17 real(8), external :: splint
18 if (n <= 9) then
19  do i=1,n
20  f(:)=0.d0
21  f(i)=1.d0
22  w(i)=splint(n,x,f)
23  end do
24  return
25 end if
26 do i=1,4
27  f(:)=0.d0
28  f(i)=1.d0
29  w(i)=splint(9,x,f)
30 end do
31 f(:)=0.d0
32 f(5)=1.d0
33 do i=5,n-4
34  w(i)=splint(9,x(i-4),f)
35 end do
36 do i=1,4
37  f(:)=0.d0
38  f(i+5)=1.d0
39  w(n-4+i)=splint(9,x(n-8),f)
40 end do
41 end subroutine
42 
subroutine wsplint(n, x, w)
Definition: wsplint.f90:7