1
subroutine adjlr (n, isp, ldif)
4
c-----------------------------------------------------------------------
5
c this routine computes an adjustment, ldif, to the required
6
c integer storage space in iwk (sparse matrix work space).
7
c it is called only if the word length ratio is lrat = 1.
8
c this is to account for the possibility that the symbolic lu phase
9
c may require more storage than the numerical lu and solution phases.
10
c-----------------------------------------------------------------------
11
integer ip, jlmax, jumax, lnfc, lsfc, nzlu
14
c get jlmax = ijl(n) and jumax = iju(n) (sizes of jl and ju). ----------
17
c nzlu = (size of l) + (size of u) = (il(n+1)-il(1)) + (iu(n+1)-iu(1)).
18
nzlu = isp(n+1) - isp(1) + isp(ip+n+1) - isp(ip+1)
19
lsfc = 12*n + 3 + 2*max0(jlmax,jumax)
20
lnfc = 9*n + 2 + jlmax + jumax + nzlu
21
ldif = max0(0, lsfc - lnfc)
23
c----------------------- end of subroutine adjlr -----------------------