12 #ifndef __LINEARSYSTEM_HEADER__
13 #define __LINEARSYSTEM_HEADER__
38 void AllocateRowMem(
const OCP_USI& dimMax,
const USI& nb);
40 void AllocateColMem();
42 void AllocateColMem(
const OCP_USI& colnum);
46 void AssembleRhs(
const vector<OCP_DBL>& rhs);
54 void CheckEquation()
const;
56 void CheckSolution()
const;
58 void OutputLinearSystem(
const string& fileA,
const string& fileb)
const;
60 void OutputSolution(
const string& filename)
const;
64 void SetupLinearSolver(
const USI& i,
const string& dir,
const string& file);
88 vector<USI> rowCapacity;
89 vector<vector<OCP_USI>> colId;
91 vector<vector<OCP_DBL>> val;
92 vector<OCP_DBL> diagVal;
Declaration of classes interfacing to the FASP solvers.
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
unsigned int OCP_USI
Long unsigned integer.
Properties and operations on connections between bulks (active grids).
Virtual base class for linear solvers.
Linear solvers for discrete systems.
USI GetNumIters()
Return the Max Iters.
void AssembleMatLinearSolver()
Assemble Mat for Linear Solver.
OCP_INT Solve()
Solve the Linear System.
void EnlargeRowCap(const OCP_USI &row, const USI &n)
Enlarge row capacity.
vector< OCP_DBL > & GetSolution()
Return the solution.
Top-level data structure for the OpenCAEPoro simulator.