|
OOFEM 3.0
|
#include <ilucomprowprecond.h>
Public Member Functions | |
| CompRow_ILUPreconditioner (const SparseMtrx &A, InputRecord &attributes) | |
| Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix. | |
| CompRow_ILUPreconditioner () | |
| Constructor. The user should call initializeFrom and init services in this given order to ensure consistency. | |
| virtual | ~CompRow_ILUPreconditioner (void) |
| Destructor. | |
| void | init (const SparseMtrx &a) override |
| void | initialize (const DynCompRow &A) |
| void | solve (const FloatArray &x, FloatArray &y) const override |
| void | trans_solve (const FloatArray &x, FloatArray &y) const override |
| const char * | giveClassName () const override |
| Returns the preconditioner name. | |
| void | initializeFrom (InputRecord &ir) override |
| Initializes receiver from given record. Empty implementation. | |
| Public Member Functions inherited from oofem::Preconditioner | |
| Preconditioner (const SparseMtrx &a, InputRecord &attributes) | |
| Preconditioner () | |
| virtual | ~Preconditioner (void) |
| Destructor. | |
| FloatArray | solve (const FloatArray &rhs) const |
| FloatArray | trans_solve (const FloatArray &rhs) const |
Protected Member Functions | |
| void | qsortCol (IntArray &, FloatArray &, int l, int r) |
| int | qsortColPartition (IntArray &, FloatArray &, int l, int r) |
Private Attributes | |
| DynCompRow | A |
| double | drop_tol |
| int | part_fill |
Implemantation of ILU (Incomplete LU) Preconditioner for compressed row sparse matrices. Fill - up supported.
Definition at line 55 of file ilucomprowprecond.h.
| oofem::CompRow_ILUPreconditioner::CompRow_ILUPreconditioner | ( | const SparseMtrx & | A, |
| InputRecord & | attributes ) |
Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix.
Definition at line 40 of file ilucomprowprecond.C.
References A, and oofem::Preconditioner::Preconditioner().
|
inline |
Constructor. The user should call initializeFrom and init services in this given order to ensure consistency.
Definition at line 67 of file ilucomprowprecond.h.
References oofem::Preconditioner::Preconditioner().
|
inlinevirtual |
Destructor.
Definition at line 69 of file ilucomprowprecond.h.
|
inlineoverridevirtual |
Returns the preconditioner name.
Reimplemented from oofem::Preconditioner.
Definition at line 79 of file ilucomprowprecond.h.
|
overridevirtual |
Initializes the receiver (constructs the preconditioning matrix M) of given matrix. Virtual service, to be implemented by derived classes. Should be called after initializeFrom service.
| a | Sparse matrix to be preconditioned. |
Reimplemented from oofem::Preconditioner.
Definition at line 57 of file ilucomprowprecond.C.
References A, drop_tol, OOFEM_ERROR, and part_fill.
| void oofem::CompRow_ILUPreconditioner::initialize | ( | const DynCompRow & | A | ) |
References A, solve(), and trans_solve().
|
overridevirtual |
Initializes receiver from given record. Empty implementation.
Reimplemented from oofem::Preconditioner.
Definition at line 45 of file ilucomprowprecond.C.
References _IFT_CompRow_ILUPrecond_droptol, _IFT_CompRow_ILUPrecond_partfill, drop_tol, IR_GIVE_OPTIONAL_FIELD, and part_fill.
|
protected |
|
protected |
|
overridevirtual |
Solves the linear system.
| rhs | Right hand side. |
| solution | Solution. |
Implements oofem::Preconditioner.
Definition at line 69 of file ilucomprowprecond.C.
References A.
Referenced by initialize().
|
overridevirtual |
Solves the transposed system.
| rhs | Right hand side. |
| solution | Solution. |
Implements oofem::Preconditioner.
Definition at line 76 of file ilucomprowprecond.C.
References A.
Referenced by initialize().
|
private |
Definition at line 58 of file ilucomprowprecond.h.
Referenced by CompRow_ILUPreconditioner(), init(), initialize(), solve(), and trans_solve().
|
private |
Definition at line 60 of file ilucomprowprecond.h.
Referenced by init(), and initializeFrom().
|
private |
Definition at line 61 of file ilucomprowprecond.h.
Referenced by init(), and initializeFrom().