ETS  \$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
 All Classes Files Functions Variables Pages
fpdisc.f
Go to the documentation of this file.
1  subroutine fpdisc(t,n,k2,b,nest)
2  implicit none
3 c subroutine fpdisc calculates the discontinuity jumps of the kth
4 c derivative of the b-splines of degree k at the knots t(k+2)..t(n-k-1)
5 c ..scalar arguments..
6  integer n,k2,nest
7 c ..array arguments..
8  real*8 t(n),b(nest,k2)
9 c ..local scalars..
10  real*8 an,fac,prod
11  integer i,ik,j,jk,k,k1,l,lj,lk,lmk,lp,nk1,nrint
12 c ..local array..
13  real*8 h(12)
14 c ..
15  k1 = k2-1
16  k = k1-1
17  nk1 = n-k1
18  nrint = nk1-k
19  an = nrint
20  fac = an/(t(nk1+1)-t(k1))
21  do 40 l=k2,nk1
22  lmk = l-k1
23  do 10 j=1,k1
24  ik = j+k1
25  lj = l+j
26  lk = lj-k2
27  h(j) = t(l)-t(lk)
28  h(ik) = t(l)-t(lj)
29  10 continue
30  lp = lmk
31  do 30 j=1,k2
32  jk = j
33  prod = h(j)
34  do 20 i=1,k
35  jk = jk+1
36  prod = prod*h(jk)*fac
37  20 continue
38  lk = lp+k1
39  b(lmk,j) = (t(lk)-t(lp))/prod
40  lp = lp+1
41  30 continue
42  40 continue
43  return
44  end
subroutine fpdisc(t, n, k2, b, nest)
Definition: fpdisc.f:1