ETS  \$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
 All Classes Files Functions Variables Pages
fpback.f
Go to the documentation of this file.
1  subroutine fpback(a,z,n,k,c,nest)
2  implicit none
3 c subroutine fpback calculates the solution of the system of
4 c equations a*c = z with a a n x n upper triangular matrix
5 c of bandwidth k.
6 c ..
7 c ..scalar arguments..
8  integer n,k,nest
9 c ..array arguments..
10  real*8 a(nest,k),z(n),c(n)
11 c ..local scalars..
12  real*8 store
13  integer i,i1,j,k1,l,m
14 c ..
15  k1 = k-1
16  c(n) = z(n)/a(n,1)
17  i = n-1
18  if(i.eq.0) go to 30
19  do 20 j=2,n
20  store = z(i)
21  i1 = k1
22  if(j.le.k1) i1 = j-1
23  m = i
24  do 10 l=1,i1
25  m = m+1
26  store = store-c(m)*a(i,l+1)
27  10 continue
28  c(i) = store/a(i,1)
29  i = i-1
30  20 continue
31  30 return
32  end
subroutine fpback(a, z, n, k, c, nest)
Definition: fpback.f:1