gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
sbblok.f
Go to the documentation of this file.
1  subroutine sbblok ( bloks, integs, nbloks, ipivot, b, x )
2 
3 c*********************************************************************72
4 c
5 cc SBBLOK solves a linear system that was factored by FCBLOK.
6 c
7 calls subroutines s u b f o r and s u b b a k .
8 c
9 c supervises the solution (by forward and backward substitution) of
10 c the linear system a*x = b for x, with the plu factorization of a
11 c already generated in f c b l o k . individual blocks of equations
12 c are solved via s u b f o r and s u b b a k .
13 c
14 c parameters
15 c bloks, integs, nbloks, ipivot are as on return from fcblok.
16 c b the right side, stored corresponding to the storage of
17 c the equations. see comments in s l v b l k for details.
18 c x solution vector
19 c
20  implicit none
21 
22  integer nbloks
23 
24  integer integs(3,nbloks),ipivot(1), i,index,indexb,indexx,j,last,
25  & nbp1,ncol,nrow
26  double precision bloks(1),b(1),x(1)
27 c
28 c forward substitution pass
29 c
30  index = 1
31  indexb = 1
32  indexx = 1
33  do 20 i=1,nbloks
34  nrow = integs(1,i)
35  last = integs(3,i)
36  call subfor(bloks(index),ipivot(indexb),nrow,last,b(indexb),
37  & x(indexx))
38  index = nrow*integs(2,i) + index
39  indexb = indexb + nrow
40  20 indexx = indexx + last
41 c
42 c back substitution pass
43 c
44  nbp1 = nbloks + 1
45  do 30 j=1,nbloks
46  i = nbp1 - j
47  nrow = integs(1,i)
48  ncol = integs(2,i)
49  last = integs(3,i)
50  index = index - nrow*ncol
51  indexb = indexb - nrow
52  indexx = indexx - last
53  30 call subbak(bloks(index),ipivot(indexb),nrow,ncol,last,
54  & x(indexx))
55  return
56  end
subroutine subfor(w, ipivot, nrow, last, b, x)
Definition: subfor.f:2
subroutine subbak(w, ipivot, nrow, ncol, last, x)
Definition: subbak.f:2
subroutine sbblok(bloks, integs, nbloks, ipivot, b, x)
Definition: sbblok.f:2
gtkIOStream: /tmp/gtkiostream/src/deBoor/sbblok.f Source File
GTK+ IOStream  Beta