DOUG 0.2
Data Types | Functions/Subroutines | Variables

Fact_class Module Reference

Module for factorization of sparse matrices. More...

Data Types

type  Fact
 Fact type General wrapper for sparse different solvers. More...

Functions/Subroutines

type(FactFact_New (solver_type, nfreds, nnz, indi, indj, val)
 Factorization constructor.
subroutine Fact_Destroy (fakt)
 Destructor for factorization object.
subroutine Fact_solve (fakt, rhs, sol)
 Solve sparse system given RHS vector.

Variables

integer, parameter D_NULLSOLVER = -1
 Solver types.
integer, parameter D_UMFPACK4 = 1
 UMFPACK v4.
integer, parameter D_MUMPS = 2
 MUMPS package.

Detailed Description

Module for factorization of sparse matrices.


Function/Subroutine Documentation

subroutine Fact_class::Fact_Destroy ( type(Fact)  fakt)

Destructor for factorization object.

Parameters:
faktfactorization object to destroy

Definition at line 224 of file Fact.F90.

References D_MUMPS, D_NULLSOLVER, and D_UMFPACK4.

type(Fact) Fact_class::Fact_New ( integer,intent(in)  solver_type,
integer,intent(in)  nfreds,
integer,intent(in)  nnz,
integer,dimension(:),intent(inout),target  indi,
integer,dimension(:),intent(inout),target  indj,
real(kind=rk),dimension(:),intent(in),target  val 
)

Factorization constructor.

Parameters:
solver_typewhat solver to use (D_UMFPACK4, etc)
nfredsnumber of freedoms in system (matrix rows, columns)
nnznumber of non-zero elements in matrix
indimatrix rows indices
indjmatrix column indices
valmatrix element values

Definition at line 64 of file Fact.F90.

References D_MUMPS, D_NULLSOLVER, D_UMFPACK4, DOUG_utils::DOUG_abort(), or(), globals::sctls, and globals::stream.

Referenced by subsolvers::factorise().

subroutine Fact_class::Fact_solve ( type(Fact)  fakt,
real(kind=rk),dimension(:),pointer  rhs,
real(kind=rk),dimension(:),pointer  sol 
)

Solve sparse system given RHS vector.

Parameters:
faktfactorization object (factorized matrix)
rhsright-hand side vector
solsolution vector

Definition at line 246 of file Fact.F90.

References D_MUMPS, D_UMFPACK4, and DOUG_utils::DOUG_abort().

Referenced by subsolvers::Solve_subdomains().


Variable Documentation

integer,parameter Fact_class::D_MUMPS = 2

MUMPS package.

Definition at line 41 of file Fact.F90.

Referenced by Fact_Destroy(), Fact_New(), and Fact_solve().

integer,parameter Fact_class::D_NULLSOLVER = -1

Solver types.

internal

Definition at line 39 of file Fact.F90.

Referenced by Fact_Destroy(), and Fact_New().

integer,parameter Fact_class::D_UMFPACK4 = 1

UMFPACK v4.

Definition at line 40 of file Fact.F90.

Referenced by Fact_Destroy(), Fact_New(), and Fact_solve().