precond Class Reference

#include <precond.h>

List of all members.

Public Member Functions

void initiation (gtopology *gt, gmatrix *gm, FILE *out)
 precond ()
void preconditioning (double *r, double *h, double *rhs)
void print (FILE *out)
void read (gtopology *gt, XFILE *in, long mespr)
void setting (precondtype p, double ift, long numaggr)
 ~precond ()

Public Attributes

aggregatoragg
 class for aggregation method
gmatrixagm
double incompltresh
 treshold for incomplete factorization
double indegamma
long n
 number of unknowns/equations
precondtype pt
 type of preconditioning
double ssoromega

Detailed Description

class deals with preconditioning

JK, 25.2.2007

Definition at line 19 of file precond.h.


Constructor & Destructor Documentation

precond (  ) 

Definition at line 5 of file precond.cpp.

References agg, agm, incompltresh, n, noprecond, and pt.

~precond (  ) 

Definition at line 18 of file precond.cpp.


Member Function Documentation

void initiation ( gtopology gt,
gmatrix gm,
FILE *  out 
)

function initiates necessary vectors, matrices, etc. e.g., it computes incomplete factorization or prepare aggregates in the case of BOSS preconditioning

Parameters:
gt - pointer to general topology
gm - pointer to general matrix
out - output stream

JK, 14.3.2007

Definition at line 119 of file precond.cpp.

References agg, agm, boss, gmatrix::copygm(), incomdec, gmatrix::incomplete_fact(), incompltresh, gmatrix::n, n, noprecond, aggregator::prepare_boss(), print_err(), and pt.

Referenced by slesolv::solve_system().

void preconditioning ( double *  r,
double *  h,
double *  rhs 
)

function computes preconditioning function modifies the residual vector

Parameters:
r - residual vector
h - preconditioned residual vector
rhs - right hand side vector

JK, 15.3.2007

Definition at line 159 of file precond.cpp.

References agg, agm, gmatrix::back_incomplete_fact(), aggregator::boss(), boss, incomdec, incompltresh, n, noprecond, print_err(), and pt.

Referenced by comprow::cg_prec(), and densemat::cg_prec_new().

void print ( FILE *  out  ) 

function prints input data

Parameters:
out - output stream

JK, 15.3.2007

Definition at line 75 of file precond.cpp.

References agg, boss, diagprec, incomdec, incompltresh, noprecond, aggregator::print(), print_err(), pt, ssoromega, and ssorprec.

Referenced by slesolv::print().

void read ( gtopology gt,
XFILE in,
long  mespr 
)

function reads input data

Parameters:
in - input stream
mespr - type of message printing

JK, 15.3.2007

Definition at line 31 of file precond.cpp.

References agg, boss, diagprec, incomdec, incompltresh, noprecond, print_err(), pt, aggregator::read(), ssoromega, ssorprec, and xfscanf().

Referenced by slesolv::read().

void setting ( precondtype  p,
double  ift,
long  numaggr 
)

Member Data Documentation

class for aggregation method

Definition at line 45 of file precond.h.

Referenced by initiation(), input(), inputt(), precond(), preconditioning(), print(), slesolv::read(), and read().

Definition at line 48 of file precond.h.

Referenced by initiation(), precond(), and preconditioning().

double incompltresh

treshold for incomplete factorization

Definition at line 42 of file precond.h.

Referenced by initiation(), precond(), preconditioning(), print(), and read().

double indegamma

Definition at line 51 of file precond.h.

long n

number of unknowns/equations

Definition at line 39 of file precond.h.

Referenced by initiation(), precond(), and preconditioning().

type of preconditioning

Definition at line 36 of file precond.h.

Referenced by initiation(), input(), inputt(), precond(), preconditioning(), print(), slesolv::read(), read(), and gmatrix::setval().

double ssoromega

Definition at line 50 of file precond.h.

Referenced by print(), and read().


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

Generated by  doxygen 1.6.2