mantaflow  0.10
A framework for fluid simulation
Public Types | Public Member Functions | Protected Attributes | List of all members
Manta::GridCgInterface Class Referenceabstract

Basic CG interface. More...

#include <conjugategrad.h>

Inheritance diagram for Manta::GridCgInterface:
Manta::GridCg< APPLYMAT >

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
 

Detailed Description

Basic CG interface.


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