OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::CompCol_ILUPreconditioner Class Reference

Implemantation of ILU (Incomplete LU) Preconditioner. More...

#include <iluprecond.h>

+ Inheritance diagram for oofem::CompCol_ILUPreconditioner:
+ Collaboration diagram for oofem::CompCol_ILUPreconditioner:

Public Member Functions

 CompCol_ILUPreconditioner (const SparseMtrx &A, InputRecord &attributes)
 Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix. More...
 
 CompCol_ILUPreconditioner ()
 Constructor. The user should call initializeFrom and init services in this given order to ensure consistency. More...
 
virtual ~CompCol_ILUPreconditioner (void)
 Destructor. More...
 
virtual void init (const SparseMtrx &)
 Initializes the receiver (constructs the preconditioning matrix M) of given matrix. More...
 
void initialize (const CompCol &A)
 
void initialize (const DynCompCol &A)
 
void solve (const FloatArray &x, FloatArray &y) const
 Solves the linear system. More...
 
void trans_solve (const FloatArray &x, FloatArray &y) const
 Solves the transposed system. More...
 
virtual const char * giveClassName () const
 Returns the preconditioner name. More...
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver from given record. Empty implementation. More...
 
- Public Member Functions inherited from oofem::Preconditioner
 Preconditioner (const SparseMtrx &a, InputRecord &attributes)
 Constructor. More...
 
 Preconditioner ()
 Constructor. More...
 
virtual ~Preconditioner (void)
 Destructor. More...
 
FloatArray solve (const FloatArray &rhs) const
 Solves the linear system. More...
 
FloatArray trans_solve (const FloatArray &rhs) const
 Solves transposed system. More...
 

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]
 

Detailed Description

Implemantation of ILU (Incomplete LU) Preconditioner.

No fill-up - ILU(0).

Definition at line 45 of file iluprecond.h.

Constructor & Destructor Documentation

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 47 of file iluprecond.C.

oofem::CompCol_ILUPreconditioner::CompCol_ILUPreconditioner ( )
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.

virtual oofem::CompCol_ILUPreconditioner::~CompCol_ILUPreconditioner ( void  )
inlinevirtual

Destructor.

Definition at line 66 of file iluprecond.h.

Member Function Documentation

virtual const char* oofem::CompCol_ILUPreconditioner::giveClassName ( ) const
inlinevirtual

Returns the preconditioner name.

Reimplemented from oofem::Preconditioner.

Definition at line 76 of file iluprecond.h.

void oofem::CompCol_ILUPreconditioner::init ( const SparseMtrx a)
virtual

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.

Parameters
aSparse matrix to be preconditioned.

Reimplemented from oofem::Preconditioner.

Definition at line 58 of file iluprecond.C.

References oofem::Timer::getUtime(), initialize(), OOFEM_ERROR, OOFEM_LOG_INFO, oofem::Timer::startTimer(), and oofem::Timer::stopTimer().

IRResultType oofem::CompCol_ILUPreconditioner::initializeFrom ( InputRecord ir)
virtual

Initializes receiver from given record. Empty implementation.

Reimplemented from oofem::Preconditioner.

Definition at line 51 of file iluprecond.C.

References oofem::Preconditioner::initializeFrom().

void oofem::CompCol_ILUPreconditioner::qsortRow ( IntArray src,
FloatArray val,
int  l,
int  r 
)
protected

Definition at line 379 of file iluprecond.C.

References qsortRowPartition().

Referenced by initialize().

int oofem::CompCol_ILUPreconditioner::qsortRowPartition ( IntArray src,
FloatArray val,
int  l,
int  r 
)
protected

Definition at line 392 of file iluprecond.C.

Referenced by qsortRow().

void oofem::CompCol_ILUPreconditioner::solve ( const FloatArray rhs,
FloatArray solution 
) const
virtual

Solves the linear system.

Parameters
rhsRight hand side.
solutionSolution.

Implements oofem::Preconditioner.

Definition at line 312 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().

void oofem::CompCol_ILUPreconditioner::trans_solve ( const FloatArray rhs,
FloatArray solution 
) const
virtual

Solves the transposed system.

Parameters
rhsRight hand side.
solutionSolution.

Implements oofem::Preconditioner.

Definition at line 343 of file iluprecond.C.

References oofem::FloatArray::at(), oofem::FloatArray::giveSize(), l_colptr_, l_rowind_, l_val_, oofem::FloatArray::resize(), u_colptr_, u_rowind_, and u_val_.

Member Data Documentation

int oofem::CompCol_ILUPreconditioner::dim_[2]
private

Definition at line 58 of file iluprecond.h.

Referenced by initialize().

IntArray oofem::CompCol_ILUPreconditioner::l_colptr_
private

Definition at line 49 of file iluprecond.h.

Referenced by initialize(), solve(), and trans_solve().

int oofem::CompCol_ILUPreconditioner::l_nz_
private

Definition at line 51 of file iluprecond.h.

Referenced by initialize().

IntArray oofem::CompCol_ILUPreconditioner::l_rowind_
private

Definition at line 50 of file iluprecond.h.

Referenced by initialize(), solve(), and trans_solve().

FloatArray oofem::CompCol_ILUPreconditioner::l_val_
private

Definition at line 48 of file iluprecond.h.

Referenced by initialize(), solve(), and trans_solve().

IntArray oofem::CompCol_ILUPreconditioner::u_colptr_
private

Definition at line 54 of file iluprecond.h.

Referenced by initialize(), solve(), and trans_solve().

int oofem::CompCol_ILUPreconditioner::u_nz_
private

Definition at line 56 of file iluprecond.h.

Referenced by initialize().

IntArray oofem::CompCol_ILUPreconditioner::u_rowind_
private

Definition at line 55 of file iluprecond.h.

Referenced by initialize(), solve(), and trans_solve().

FloatArray oofem::CompCol_ILUPreconditioner::u_val_
private

Definition at line 53 of file iluprecond.h.

Referenced by initialize(), solve(), and trans_solve().


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:34 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011