|
OOFEM 3.0
|
#include <iluprecond.h>
Public Member Functions | |
| CompCol_ILUPreconditioner (const SparseMtrx &A, InputRecord &attributes) | |
| Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix. | |
| CompCol_ILUPreconditioner () | |
| Constructor. The user should call initializeFrom and init services in this given order to ensure consistency. | |
| virtual | ~CompCol_ILUPreconditioner (void) |
| Destructor. | |
| void | init (const SparseMtrx &) override |
| void | initialize (const CompCol &A) |
| void | initialize (const DynCompCol &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 | qsortRow (IntArray &, FloatArray &, int l, int r) |
| int | qsortRowPartition (IntArray &, FloatArray &, int l, int r) |
Private Attributes | |
| FloatArray | l_val |
| IntArray | l_colptr |
| IntArray | l_rowind |
| int | l_nz |
| FloatArray | u_val |
| IntArray | u_colptr |
| IntArray | u_rowind |
| int | u_nz |
| int | dim [2] |
Implemantation of ILU (Incomplete LU) Preconditioner. No fill-up - ILU(0).
Definition at line 45 of file iluprecond.h.
| oofem::CompCol_ILUPreconditioner::CompCol_ILUPreconditioner | ( | const SparseMtrx & | A, |
| InputRecord & | attributes ) |
Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix.
Definition at line 42 of file iluprecond.C.
References oofem::Preconditioner::Preconditioner().
|
inline |
Constructor. The user should call initializeFrom and init services in this given order to ensure consistency.
Definition at line 64 of file iluprecond.h.
References oofem::Preconditioner::Preconditioner().
|
inlinevirtual |
Destructor.
Definition at line 66 of file iluprecond.h.
|
inlineoverridevirtual |
Returns the preconditioner name.
Reimplemented from oofem::Preconditioner.
Definition at line 76 of file iluprecond.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 54 of file iluprecond.C.
References oofem::Timer::getUtime(), initialize(), OOFEM_ERROR, OOFEM_LOG_INFO, oofem::Timer::startTimer(), and oofem::Timer::stopTimer().
| void oofem::CompCol_ILUPreconditioner::initialize | ( | const CompCol & | A | ) |
Definition at line 77 of file iluprecond.C.
References oofem::CompCol::col_ptr(), dim, oofem::SparseMtrx::giveNumberOfColumns(), oofem::SparseMtrx::giveNumberOfRows(), l_colptr, l_nz, l_rowind, l_val, oofem::CompCol::row_ind(), u_colptr, u_nz, u_rowind, u_val, and oofem::CompCol::values().
Referenced by init().
| void oofem::CompCol_ILUPreconditioner::initialize | ( | const DynCompCol & | A | ) |
Definition at line 171 of file iluprecond.C.
References oofem::FloatArray::at(), oofem::IntArray::at(), oofem::DynCompCol::column(), dim, oofem::SparseMtrx::giveNumberOfColumns(), oofem::SparseMtrx::giveNumberOfRows(), l_colptr, l_nz, l_rowind, l_val, qsortRow(), oofem::DynCompCol::row_ind(), u_colptr, u_nz, u_rowind, and u_val.
|
overridevirtual |
Initializes receiver from given record. Empty implementation.
Reimplemented from oofem::Preconditioner.
Definition at line 47 of file iluprecond.C.
|
protected |
Definition at line 323 of file iluprecond.C.
References qsortRow(), and qsortRowPartition().
Referenced by initialize(), and qsortRow().
|
protected |
Definition at line 336 of file iluprecond.C.
Referenced by qsortRow().
|
overridevirtual |
Solves the linear system.
| rhs | Right hand side. |
| solution | Solution. |
Implements oofem::Preconditioner.
Definition at line 265 of file iluprecond.C.
References oofem::FloatArray::giveSize(), l_colptr, l_rowind, l_val, oofem::FloatArray::resize(), u_colptr, u_rowind, u_val, and oofem::FloatArray::zero().
|
overridevirtual |
Solves the transposed system.
| rhs | Right hand side. |
| solution | Solution. |
Implements oofem::Preconditioner.
Definition at line 292 of file iluprecond.C.
References oofem::FloatArray::giveSize(), l_colptr, l_rowind, l_val, oofem::FloatArray::resize(), u_colptr, u_rowind, and u_val.
|
private |
Definition at line 58 of file iluprecond.h.
Referenced by initialize(), and initialize().
|
private |
Definition at line 49 of file iluprecond.h.
Referenced by initialize(), initialize(), solve(), and trans_solve().
|
private |
Definition at line 51 of file iluprecond.h.
Referenced by initialize(), and initialize().
|
private |
Definition at line 50 of file iluprecond.h.
Referenced by initialize(), initialize(), solve(), and trans_solve().
|
private |
Definition at line 48 of file iluprecond.h.
Referenced by initialize(), initialize(), solve(), and trans_solve().
|
private |
Definition at line 54 of file iluprecond.h.
Referenced by initialize(), initialize(), solve(), and trans_solve().
|
private |
Definition at line 56 of file iluprecond.h.
Referenced by initialize(), and initialize().
|
private |
Definition at line 55 of file iluprecond.h.
Referenced by initialize(), initialize(), solve(), and trans_solve().
|
private |
Definition at line 53 of file iluprecond.h.
Referenced by initialize(), initialize(), solve(), and trans_solve().