ParMooN
 All Classes Functions Variables Friends Pages
Public Member Functions | Protected Attributes | List of all members
TItMethod Class Referenceabstract

#include <ItMethod.h>

Inheritance diagram for TItMethod:
Inheritance graph
[legend]
Collaboration diagram for TItMethod:
Collaboration graph
[legend]

Public Member Functions

 TItMethod (MatVecProc *MatVec, DefectProc *Defect, TItMethod *Prec, int n_aux, int N_Unknowns)
 
virtual ~TItMethod ()
 
virtual int Iterate (TSquareMatrix **A, TMatrix **B, double *sol, double *rhs)=0
 
int GetSystemId () const
 
int GetPrecMaxit () const
 
void SetPrecMaxit (int Prec_Maxit)
 
double GetResNormMin () const
 
void SetResNormMin (double Res_Norm_Min)
 
double GetRedFactor () const
 
void SetRedFactor (double Red_Factor)
 
double GetDivFactor () const
 
void SetDivFactor (double Div_Factor)
 
int GetMaxit () const
 
void SetMaxit (int Maxit)
 
int GetMinit () const
 
void SetMinit (int Minit)
 
int GetRestart () const
 
void SetRestart (int Restart)
 

Protected Attributes

MatVecProc * matvec
 
DefectProc * matvecdefect
 
TItMethodprec
 
int N_DOF
 
int system_id
 
int prec_maxit
 
double res_norm_min
 
double red_factor
 
double div_factor
 
int maxit
 
int minit
 
int restart
 
double * defect
 
double ** AuxArray
 
int N_Aux
 

Detailed Description

iteration method

Constructor & Destructor Documentation

TItMethod::TItMethod ( MatVecProc *  MatVec,
DefectProc *  Defect,
TItMethod Prec,
int  n_aux,
int  N_Unknowns 
)

constructor

constructor with initialization

TItMethod::~TItMethod ( )
virtual

destructor

Member Function Documentation

double TItMethod::GetDivFactor ( ) const
inline

return tolerance for divergence

int TItMethod::GetMaxit ( ) const
inline

return maximal number of iterations

int TItMethod::GetMinit ( ) const
inline

return minimal number of iterations

int TItMethod::GetPrecMaxit ( ) const
inline

return maximal number of preconditioner iterations

double TItMethod::GetRedFactor ( ) const
inline

return relative tolerance for stopping

double TItMethod::GetResNormMin ( ) const
inline

return absolute tolerance for stopping

int TItMethod::GetRestart ( ) const
inline

return restart

int TItMethod::GetSystemId ( ) const
inline

return system id

virtual int TItMethod::Iterate ( TSquareMatrix **  A,
TMatrix **  B,
double *  sol,
double *  rhs 
)
pure virtual

iterate input **A, **B output (solution) *sol input (rhs) *rhs

Implemented in TFgmresIte, TFixedPointIte, TMultiGridScaIte, TJacobiIte, TMultiGridIte, TCg, TSSORIte, and TBcgs.

Here is the caller graph for this function:

void TItMethod::SetDivFactor ( double  Div_Factor)
inline

set tolerance for divergence

void TItMethod::SetMaxit ( int  Maxit)
inline

set maximal number of iterations

void TItMethod::SetMinit ( int  Minit)
inline

set minimal number of iterations

void TItMethod::SetPrecMaxit ( int  Prec_Maxit)
inline

set maximal number of preconditioner iterations

void TItMethod::SetRedFactor ( double  Red_Factor)
inline

set relative tolerance for stopping

void TItMethod::SetResNormMin ( double  Res_Norm_Min)
inline

set absolute tolerance for stopping

void TItMethod::SetRestart ( int  Restart)
inline

set restart

Member Data Documentation

double** TItMethod::AuxArray
protected

auxiliary arrays

double* TItMethod::defect
protected

array for defect

double TItMethod::div_factor
protected

limit divergence

MatVecProc* TItMethod::matvec
protected

routine for matrix vector product

DefectProc* TItMethod::matvecdefect
protected

routine for defect

int TItMethod::maxit
protected

maximal number of iterations

int TItMethod::minit
protected

minimal number of iterations

int TItMethod::N_Aux
protected

number of auxiliary arrays

int TItMethod::N_DOF
protected

number of degrees of freedom

TItMethod* TItMethod::prec
protected

preconditioner

int TItMethod::prec_maxit
protected

maximal number of preconditioner iterations

double TItMethod::red_factor
protected

relative tolerance for stopping

double TItMethod::res_norm_min
protected

absolute tolerance for stopping

int TItMethod::restart
protected

restart

int TItMethod::system_id
protected

id of the system type


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