V3FIT
Main Page
Related Pages
Modules
Modules List
Module Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions/Subroutines
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Data Types List
Data Types List
Data Types
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
Functions/Subroutines
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
b
c
g
i
l
m
n
p
t
v
w
Functions/Subroutines
b
c
g
i
m
p
t
v
w
Variables
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Macros
Pages
LIBSTELL
Sources
Miscel
solver.f
1
SUBROUTINE
solver(amat, b, m, nrhs, info)
2
USE
stel_kinds
3
IMPLICIT NONE
4
C-----------------------------------------------
5
C D u m m y A r g u m e n t s
6
C-----------------------------------------------
7
INTEGER
,
INTENT(in)
:: m, nrhs
8
INTEGER
,
INTENT(out)
:: info
9
REAL
(rprec),
INTENT(inout)
:: amat(m,m), b(m,nrhs)
10
C-----------------------------------------------
11
C L o c a l V a r i a b l e s
12
C-----------------------------------------------
13
INTEGER
,
ALLOCATABLE
:: ipiv(:)
14
C-----------------------------------------------
15
info = 0
16
ALLOCATE
(ipiv(m))
17
18
! Compute the solution to a REAL system of linear equations
19
! AMAT * X = B,
20
! WHERE AMAT is an M-by-M matrix and X and B are N-by-NRHS matrices.
21
!
22
! FACTOR AMATRIX INTO LU FORM
23
! AND SOLVE BY GAUSSIAN ELIMINATION
24
!
25
CALL
dgesv (m, nrhs, amat, m, ipiv, b, m, info)
26
! IF (info .ne. 0) PRINT *, ' Condition No. = 0 in Solver'
27
28
DEALLOCATE
(ipiv)
29
30
END SUBROUTINE
solver
Generated on Thu Mar 5 2020 15:49:23 for V3FIT by
1.8.17