2 * (n
, r
, c
, il
, jl
, ijl
, l
, d
, iu
, ju
, iju
, u
, z
, b
, tmp
)
4 c*** numerical solution of sparse nonsymmetric system of linear
5 c equations given ldu-factorization (compressed pointer storage)
8 c input variables.. n, r, c, il, jl, ijl, l, d, iu, ju, iju, u, b
11 c parameters used internally..
12 c fia - tmp - temporary vector which gets result of solving ly = b.
15 c internal variables..
16 c jmin, jmax - indices of the first and last positions in a row of
19 integer r
(*), c
(*), il
(*), jl
(*), ijl
(*), iu
(*), ju
(*), iju
(*)
20 c real l(*), d(*), u(*), b(*), z(*), tmp(*), tmpk, sum
21 double precision l
(*), d
(*), u
(*), b
(*), z
(*), tmp
(*), tmpk
,sum
23 c ****** set tmp to reordered b *************************************
26 c ****** solve ly = b by forward substitution *********************
32 if (jmin
.gt
. jmax
) go to 3
35 2 tmp
(jl
(ml
+j
)) = tmp
(jl
(ml
+j
)) + tmpk
* l
(j
)
37 c ****** solve ux = y by back substitution ************************
43 if (jmin
.gt
. jmax
) go to 5
46 4 sum
= sum
+ u
(j
) * tmp
(ju
(mu
+j
))