GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
dslvd.f
Go to the documentation of this file.
1C Work performed under the auspices of the U.S. Department of Energy
2C by Lawrence Livermore National Laboratory under contract number
3C W-7405-Eng-48.
4C
5 SUBROUTINE dslvd(NEQ,DELTA,WM,IWM)
6C
7C***BEGIN PROLOGUE DSLVD
8C***REFER TO DDASPK
9C***DATE WRITTEN 890101 (YYMMDD)
10C***REVISION DATE 900926 (YYMMDD)
11C***REVISION DATE 940701 (YYMMDD) (new LIPVT)
12C
13C-----------------------------------------------------------------------
14C***DESCRIPTION
15C
16C This routine manages the solution of the linear
17C system arising in the Newton iteration.
18C Real matrix information and real temporary storage
19C is stored in the array WM.
20C Integer matrix information is stored in the array IWM.
21C For a dense matrix, the LAPACK routine DGETRS is called.
22C For a banded matrix, the LAPACK routine DGBTRS is called.
23C-----------------------------------------------------------------------
24C***ROUTINES CALLED
25C DGETRS, DGBTRS
26C
27C***END PROLOGUE DSLVD
28C
29C
30 IMPLICIT DOUBLE PRECISION(a-h,o-z)
31 dimension delta(*),wm(*),iwm(*)
32C
33 parameter(lml=1, lmu=2, lmtype=4, llciwp=30)
34C
35 lipvt = iwm(llciwp)
36 mtype=iwm(lmtype)
37 GO TO(100,100,300,400,400),mtype
38C
39C Dense matrix.
40C
41100 CALL dgetrs('N', neq, 1, wm, neq, iwm(lipvt), delta, neq, inlpck)
42 RETURN
43C
44C Dummy section for MTYPE=3.
45C
46300 CONTINUE
47 RETURN
48C
49C Banded matrix.
50C
51400 meband=2*iwm(lml)+iwm(lmu)+1
52 CALL dgbtrs('N', neq, iwm(lml), iwm(lmu), 1, wm, meband,
53 * iwm(lipvt), delta, neq, inlpck)
54 RETURN
55C
56C------END OF SUBROUTINE DSLVD------------------------------------------
57 END
subroutine dslvd(neq, delta, wm, iwm)
Definition dslvd.f:6