OpenCAEPoro
v0.5.0
A simulator for multicomponent porous media flow
|
Virtual base class for linear solvers. More...
#include <LinearSolver.hpp>
Public Member Functions | |
virtual void | SetupParam (const string &dir, const string &file)=0 |
Read the params for linear solvers from an input file. | |
virtual void | InitParam ()=0 |
Initialize the params for linear solvers. | |
virtual void | Allocate (const vector< USI > &rowCapacity, const OCP_USI &maxDim, const USI &blockDim)=0 |
Allocate maximum memory for linear solvers. | |
virtual void | AssembleMat (const vector< vector< USI >> &colId, const vector< vector< OCP_DBL >> &val, const OCP_USI &dim, const USI &blockDim, vector< OCP_DBL > &rhs, vector< OCP_DBL > &u)=0 |
Assemble matrix for linear solver from the internal matrix data. | |
virtual OCP_INT | Solve ()=0 |
Solve the linear system and return the number of iterations. | |
virtual USI | GetNumIters () const =0 |
Get number of iterations. | |
Virtual base class for linear solvers.
Definition at line 25 of file LinearSolver.hpp.