CG_SOLVER Class Reference

#include <CG_SOLVER.h>

Inheritance diagram for CG_SOLVER:

CG_SOLVER_SSE

Detailed Description

Conjugate gradient Poisson solver.


Public Member Functions

 CG_SOLVER (int maxDepth, int iterations=10, int digits=8)
 constructor
virtual ~CG_SOLVER ()
 destructor
virtual int solve (list< CELL * > cells)
 solve the Poisson problem
float calcResidual (list< CELL * > cells)
 calculate the residual
int & iterations ()
 accessor for the maximum number of iterations

Protected Member Functions

void calcStencils (list< CELL * > cells)
 compute stencils once and store
virtual void reallocate ()
 reallocate the scratch arrays

Protected Attributes

int _iterations
 maximum number of iterations
int _digits
 desired digits of precision
float * _direction
 conjugate gradient 'd' array
float * _potential
 conjugate gradient solution, 'x' array
float * _residual
 conjugate gradient residual, 'r' array
float * _q
 conjugate gradient 'q' array
int _arraySize
 currently allocated array size
int _listSize
 current system size
float * _dx
 physical lengths of various cell sizes


The documentation for this class was generated from the following files:
Generated on Wed Oct 25 03:19:42 2006 for Lumos by  doxygen 1.4.6