#include <CG_SOLVER.h>
Inheritance diagram for CG_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 | |
1.4.6