OpenCAEPoro  v0.5.0
A simulator for multicomponent porous media flow
Public Member Functions | List of all members
LinearSolver Class Referenceabstract

Virtual base class for linear solvers. More...

#include <LinearSolver.hpp>

Inheritance diagram for LinearSolver:
FaspSolver ScalarFaspSolver VectorFaspSolver

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.
 

Detailed Description

Virtual base class for linear solvers.

Definition at line 25 of file LinearSolver.hpp.


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