#include <precond.h>
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 | |
aggregator * | agg |
class for aggregation method | |
gmatrix * | agm |
double | incompltresh |
treshold for incomplete factorization | |
double | indegamma |
long | n |
number of unknowns/equations | |
precondtype | pt |
type of preconditioning | |
double | ssoromega |
class deals with preconditioning
JK, 25.2.2007
Definition at line 19 of file precond.h.
precond | ( | ) |
Definition at line 5 of file precond.cpp.
~precond | ( | ) |
Definition at line 18 of file precond.cpp.
function initiates necessary vectors, matrices, etc. e.g., it computes incomplete factorization or prepare aggregates in the case of BOSS preconditioning
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
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
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().
function reads input data
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 | |||
) |
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().
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().