![]() |
|
ILU(0) Preconditioner for matrices of CRDoubleMatrix Format. More...
#include <general_purpose_preconditioners.h>
Public Member Functions | |
ILUZeroPreconditioner () | |
Constructor (empty) More... | |
ILUZeroPreconditioner (const ILUZeroPreconditioner &)=delete | |
Broken copy constructor. More... | |
void | operator= (const ILUZeroPreconditioner &)=delete |
Broken assignment operator. More... | |
~ILUZeroPreconditioner () | |
Destructor (empty) More... | |
void | preconditioner_solve (const DoubleVector &r, DoubleVector &z) |
Apply preconditioner to r. More... | |
void | setup () |
setup ILU(0) preconditioner for Matrices of CRDoubleMatrix Type More... | |
![]() | |
Preconditioner () | |
Constructor. More... | |
Preconditioner (const Preconditioner &)=delete | |
Broken copy constructor. More... | |
void | operator= (const Preconditioner &)=delete |
Broken assignment operator. More... | |
virtual | ~Preconditioner () |
Destructor (empty) More... | |
virtual void | preconditioner_solve_transpose (const DoubleVector &r, DoubleVector &z) |
void | setup (DoubleMatrixBase *matrix_pt) |
void | setup (const Problem *problem_pt, DoubleMatrixBase *matrix_pt) |
void | enable_silent_preconditioner_setup () |
Set up the block preconditioner quietly! More... | |
void | disable_silent_preconditioner_setup () |
Be verbose in the block preconditioner setup. 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) |
![]() | |
DistributableLinearAlgebraObject () | |
Default constructor - create a distribution. More... | |
DistributableLinearAlgebraObject (const DistributableLinearAlgebraObject &matrix)=delete | |
Broken copy constructor. More... | |
void | operator= (const DistributableLinearAlgebraObject &)=delete |
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) |
void | build_distribution (const LinearAlgebraDistribution &dist) |
Private Attributes | |
Vector< unsigned > | U_row_start |
Row start for upper triangular matrix. More... | |
Vector< CompressedMatrixCoefficient > | U_row_entry |
Vector< unsigned > | L_row_start |
Row start for lower triangular matrix. More... | |
Vector< CompressedMatrixCoefficient > | L_row_entry |
Additional Inherited Members | |
![]() | |
void | clear_distribution () |
![]() | |
bool | Silent_preconditioner_setup |
Boolean to indicate whether or not the build should be done silently. More... | |
std::ostream * | Stream_pt |
Pointer to the output stream – defaults to std::cout. More... | |
ILU(0) Preconditioner for matrices of CRDoubleMatrix Format.
|
inline |
|
delete |
Broken copy constructor.
|
inline |
|
delete |
Broken assignment operator.
|
virtual |
Apply preconditioner to r.
Apply ILU(0) preconditioner for CRDoubleMatrix: Solve Ly=r then Uz=y and return z
Implements oomph::Preconditioner.
References oomph::DoubleVector::built(), oomph::DistributableLinearAlgebraObject::distributed(), oomph::DistributableLinearAlgebraObject::distribution_pt(), i, j, UniformPSDSelfTest::r, oomph::DoubleVector::redistribute(), and plotPSD::t.
|
virtual |
setup ILU(0) preconditioner for Matrices of CRDoubleMatrix Type
Setup the preconditioner (store diagonal) from the fully assembled matrix. Problem pointer is ignored.
Implements oomph::Preconditioner.
References oomph::DistributableLinearAlgebraObject::build_distribution(), oomph::CRDoubleMatrix::column_index(), oomph::DistributableLinearAlgebraObject::distributed(), oomph::DistributableLinearAlgebraObject::distribution_pt(), oomph::CRDoubleMatrix::global_matrix(), i, j, k, oomph::Preconditioner::matrix_pt(), Global_Physical_Variables::multiplier(), oomph::CRDoubleMatrix::nrow(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, oomph::CRDoubleMatrix::row_start(), Eigen::value, and oomph::CRDoubleMatrix::value().
|
private |
column entry for the lower triangular matrix (each element of the vector contains the column index and coefficient)
|
private |
Row start for lower triangular matrix.
|
private |
column entry for the upper triangular matrix (each element of the vector contains the column index and coefficient)
|
private |
Row start for upper triangular matrix.