mantaflow
0.10
A framework for fluid simulation
|
Basic CG interface. More...
#include <conjugategrad.h>
Public Types | |
enum | PreconditionType { PC_None =0, PC_ICP, PC_mICP, PC_MGP } |
Public Member Functions | |
virtual bool | iterate ()=0 |
virtual void | solve (int maxIter)=0 |
virtual void | setICPreconditioner (PreconditionType method, Grid< Real > *A0, Grid< Real > *Ai, Grid< Real > *Aj, Grid< Real > *Ak)=0 |
virtual void | setMGPreconditioner (PreconditionType method, GridMg *MG)=0 |
virtual Real | getSigma () const =0 |
virtual Real | getIterations () const =0 |
virtual Real | getResNorm () const =0 |
virtual void | setAccuracy (Real set)=0 |
virtual Real | getAccuracy () const =0 |
virtual void | forceReinit ()=0 |
force reinit upon next iterate() call, can be used for doing multiple solves | |
void | setUseL2Norm (bool set) |
Protected Attributes | |
bool | mUseL2Norm |
Basic CG interface.