dsli.f 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. *DECK DSLI
  2. SUBROUTINE DSLI (N, B, X, NELT, IA, JA, A, ISYM, RWORK, IWORK)
  3. C***BEGIN PROLOGUE DSLI
  4. C***PURPOSE SLAP MSOLVE for Lower Triangle Matrix.
  5. C This routine acts as an interface between the SLAP generic
  6. C MSOLVE calling convention and the routine that actually
  7. C -1
  8. C computes L B = X.
  9. C***LIBRARY SLATEC (SLAP)
  10. C***CATEGORY D2A3
  11. C***TYPE DOUBLE PRECISION (SSLI-S, DSLI-D)
  12. C***KEYWORDS ITERATIVE PRECONDITION, LINEAR SYSTEM SOLVE, SLAP, SPARSE
  13. C***AUTHOR Greenbaum, Anne, (Courant Institute)
  14. C Seager, Mark K., (LLNL)
  15. C Lawrence Livermore National Laboratory
  16. C PO BOX 808, L-60
  17. C Livermore, CA 94550 (510) 423-3141
  18. C seager@llnl.gov
  19. C***DESCRIPTION
  20. C It is assumed that RWORK and IWORK have initialized with
  21. C the information required for DSLI2:
  22. C IWORK(1) = NEL
  23. C IWORK(2) = Starting location of IEL in IWORK.
  24. C IWORK(3) = Starting location of JEL in IWORK.
  25. C IWORK(4) = Starting location of EL in RWORK.
  26. C See the DESCRIPTION of DSLI2 for details.
  27. C***REFERENCES (NONE)
  28. C***ROUTINES CALLED DSLI2
  29. C***REVISION HISTORY (YYMMDD)
  30. C 871119 DATE WRITTEN
  31. C 881213 Previous REVISION DATE
  32. C 890915 Made changes requested at July 1989 CML Meeting. (MKS)
  33. C 890922 Numerous changes to prologue to make closer to SLATEC
  34. C standard. (FNF)
  35. C 890929 Numerous changes to reduce SP/DP differences. (FNF)
  36. C 910411 Prologue converted to Version 4.0 format. (BAB)
  37. C 920511 Added complete declaration section. (WRB)
  38. C 921113 Corrected C***CATEGORY line. (FNF)
  39. C 930701 Updated CATEGORY section. (FNF, WRB)
  40. C***END PROLOGUE DSLI
  41. C .. Scalar Arguments ..
  42. INTEGER ISYM, N, NELT
  43. C .. Array Arguments ..
  44. DOUBLE PRECISION A(NELT), B(N), RWORK(*), X(N)
  45. INTEGER IA(NELT), IWORK(10), JA(NELT)
  46. C .. Local Scalars ..
  47. INTEGER LOCEL, LOCIEL, LOCJEL, NEL
  48. C .. External Subroutines ..
  49. EXTERNAL DSLI2
  50. C***FIRST EXECUTABLE STATEMENT DSLI
  51. C
  52. NEL = IWORK(1)
  53. LOCIEL = IWORK(2)
  54. LOCJEL = IWORK(3)
  55. LOCEL = IWORK(4)
  56. CALL DSLI2(N, B, X, NEL, IWORK(LOCIEL), IWORK(LOCJEL),
  57. $ RWORK(LOCEL))
  58. C
  59. RETURN
  60. C------------- LAST LINE OF DSLI FOLLOWS ----------------------------
  61. END