ILU(0) Preconditioner for matrices of CCDoubleMatrix Format. More...
#include <general_purpose_preconditioners.h>
Inheritance diagram for oomph::ILUZeroPreconditioner< CCDoubleMatrix >:Public Member Functions | |
| ILUZeroPreconditioner () | |
| Constructor (empty) More... | |
| ~ILUZeroPreconditioner () | |
| Destructor (empty) More... | |
| ILUZeroPreconditioner (const ILUZeroPreconditioner &) | |
| Broken copy constructor. More... | |
| void | operator= (const ILUZeroPreconditioner &) |
| Broken assignment operator. More... | |
| void | preconditioner_solve (const DoubleVector &r, DoubleVector &z) |
| Apply preconditioner to r. More... | |
| void | setup () |
| Setup the preconditioner (store diagonal) from the fully assembled matrix. Problem pointer is ignored. More... | |
Public Member Functions inherited from oomph::Preconditioner | |
| Preconditioner () | |
| Constructor. More... | |
| Preconditioner (const Preconditioner &) | |
| Broken copy constructor. More... | |
| void | operator= (const Preconditioner &) |
| Broken assignment operator. More... | |
| virtual | ~Preconditioner () |
| Destructor (empty) More... | |
| void | setup (DoubleMatrixBase *matrix_pt) |
| Setup the preconditioner: store the matrix pointer and the communicator pointer then call preconditioner specific setup() function. More... | |
| void | setup (const Problem *problem_pt, DoubleMatrixBase *matrix_pt) |
| Compatability layer for old preconditioners where problem pointers were needed. The problem pointer is only used to get a communicator pointer. More... | |
| virtual void | clean_up_memory () |
| Clean up memory (empty). Generic interface function. More... | |
| virtual DoubleMatrixBase * | matrix_pt () const |
| Get function for matrix pointer. More... | |
| virtual void | set_matrix_pt (DoubleMatrixBase *matrix_pt) |
| Set the matrix pointer. More... | |
| virtual const OomphCommunicator * | comm_pt () const |
| Get function for comm pointer. More... | |
| virtual void | set_comm_pt (const OomphCommunicator *const comm_pt) |
| Set the communicator pointer. More... | |
| double | setup_time () const |
| Returns the time to setup the preconditioner. More... | |
| virtual void | turn_into_subsidiary_block_preconditioner (BlockPreconditioner< CRDoubleMatrix > *master_block_prec_pt, const Vector< unsigned > &doftype_in_master_preconditioner_coarse) |
| virtual void | turn_into_subsidiary_block_preconditioner (BlockPreconditioner< CRDoubleMatrix > *master_block_prec_pt, const Vector< unsigned > &doftype_in_master_preconditioner_coarse, const Vector< Vector< unsigned > > &doftype_coarsen_map_coarse) |
Public Member Functions inherited from oomph::DistributableLinearAlgebraObject | |
| DistributableLinearAlgebraObject () | |
| Default constructor - create a distribution. More... | |
| DistributableLinearAlgebraObject (const DistributableLinearAlgebraObject &matrix) | |
| Broken copy constructor. More... | |
| void | operator= (const DistributableLinearAlgebraObject &) |
| Broken assignment operator. More... | |
| virtual | ~DistributableLinearAlgebraObject () |
| Destructor. More... | |
| LinearAlgebraDistribution * | distribution_pt () const |
| access to the LinearAlgebraDistribution More... | |
| unsigned | nrow () const |
| access function to the number of global rows. More... | |
| unsigned | nrow_local () const |
| access function for the num of local rows on this processor. More... | |
| unsigned | nrow_local (const unsigned &p) const |
| access function for the num of local rows on this processor. More... | |
| unsigned | first_row () const |
| access function for the first row on this processor More... | |
| unsigned | first_row (const unsigned &p) const |
| access function for the first row on this processor More... | |
| bool | distributed () const |
| distribution is serial or distributed More... | |
| bool | distribution_built () const |
| void | build_distribution (const LinearAlgebraDistribution *const dist_pt) |
| setup the distribution of this distributable linear algebra object More... | |
| void | build_distribution (const LinearAlgebraDistribution &dist) |
| setup the distribution of this distributable linear algebra object More... | |
Private Attributes | |
| Vector< unsigned > | U_column_start |
| Column start for upper triangular matrix. More... | |
| Vector< CompressedMatrixCoefficient > | U_row_entry |
| Row entry for the upper triangular matrix (each element of the vector contains the row index and coefficient) More... | |
| Vector< unsigned > | L_column_start |
| Column start for lower triangular matrix. More... | |
| Vector< CompressedMatrixCoefficient > | L_row_entry |
| Row entry for the lower triangular matrix (each element of the vector contains the row index and coefficient) More... | |
Additional Inherited Members | |
Protected Member Functions inherited from oomph::DistributableLinearAlgebraObject | |
| void | clear_distribution () |
| clear the distribution of this distributable linear algebra object More... | |
ILU(0) Preconditioner for matrices of CCDoubleMatrix Format.
Definition at line 285 of file general_purpose_preconditioners.h.
|
inline |
Constructor (empty)
Definition at line 291 of file general_purpose_preconditioners.h.
|
inline |
Destructor (empty)
Definition at line 294 of file general_purpose_preconditioners.h.
|
inline |
Broken copy constructor.
Definition at line 298 of file general_purpose_preconditioners.h.
References oomph::BrokenCopy::broken_copy().
|
inline |
Broken assignment operator.
Definition at line 304 of file general_purpose_preconditioners.h.
References oomph::BrokenCopy::broken_assign(), oomph::MatrixBasedDiagPreconditioner::preconditioner_solve(), and oomph::MatrixBasedDiagPreconditioner::setup().
|
virtual |
Apply preconditioner to r.
Apply ILU(0) preconditioner for CCDoubleMatrix: Solve Ly=r then Uz=y and return z.
Implements oomph::Preconditioner.
Definition at line 620 of file general_purpose_preconditioners.cc.
References oomph::DoubleVector::built(), oomph::LinearAlgebraDistribution::distributed(), oomph::DistributableLinearAlgebraObject::distribution_pt(), i, and oomph::DistributableLinearAlgebraObject::nrow().
|
virtual |
Setup the preconditioner (store diagonal) from the fully assembled matrix. Problem pointer is ignored.
setup ILU(0) preconditioner for Matrices of CCDoubleMatrix type
Implements oomph::Preconditioner.
Definition at line 327 of file general_purpose_preconditioners.cc.
References oomph::DistributableLinearAlgebraObject::build_distribution(), oomph::CCMatrix< T >::column_start(), oomph::Preconditioner::comm_pt(), i, oomph::Preconditioner::matrix_pt(), oomph::CCDoubleMatrix::nrow(), oomph::CCMatrix< T >::row_index(), and oomph::SparseMatrix< T, MATRIX_TYPE >::value().
|
private |
Column start for lower triangular matrix.
Definition at line 327 of file general_purpose_preconditioners.h.
|
private |
Row entry for the lower triangular matrix (each element of the vector contains the row index and coefficient)
Definition at line 331 of file general_purpose_preconditioners.h.
|
private |
Column start for upper triangular matrix.
Definition at line 320 of file general_purpose_preconditioners.h.
|
private |
Row entry for the upper triangular matrix (each element of the vector contains the row index and coefficient)
Definition at line 324 of file general_purpose_preconditioners.h.