Chi-Tech
|
#include <ags_context.h>
Public Types | |
typedef chi_math::LinearSolver< MatType, VecType, SolverType > | LinSolveBaseType |
typedef std::shared_ptr< LinSolveBaseType > | LinSolveBaseTypePtr |
Public Member Functions | |
AGSContext (LBSSolver &lbs_solver, std::vector< LinSolveBaseTypePtr > sub_solvers_list) | |
std::pair< int64_t, int64_t > | SystemSize () |
virtual void | SetPreconditioner (SolverType &solver) |
int | MatrixAction (MatType &matrix, VecType &vector, VecType &action) override |
std::pair< int64_t, int64_t > | SystemSize () |
void | SetPreconditioner (KSP &solver) |
int | MatrixAction (Mat &matrix, Vec &vector, Vec &action) |
Public Member Functions inherited from chi_math::LinearSolverContext< MatType, VecType > | |
virtual int | MatrixAction (MatType &matrix, VecType &vector, VecType &action) |
virtual | ~LinearSolverContext ()=default |
Data Fields | |
LBSSolver & | lbs_solver_ |
std::vector< LinSolveBaseTypePtr > | sub_solvers_list_ |
Data Fields inherited from chi_math::LinearSolverContext< MatType, VecType > | |
double | rhs_norm = 0.0 |
double | rhs_preconditioned_norm = 0.0 |
double | custom_residual_scale = 1.0 |
ResidualScaleType | residual_scale_type = ResidualScaleType::NONE |
Definition at line 19 of file ags_context.h.
typedef chi_math::LinearSolver<MatType, VecType, SolverType> lbs::AGSContext< MatType, VecType, SolverType >::LinSolveBaseType |
Definition at line 21 of file ags_context.h.
typedef std::shared_ptr<LinSolveBaseType> lbs::AGSContext< MatType, VecType, SolverType >::LinSolveBaseTypePtr |
Definition at line 22 of file ags_context.h.
|
inline |
Definition at line 26 of file ags_context.h.
Definition at line 46 of file ags_context.cc.
|
overridevirtual |
Reimplemented from chi_math::LinearSolverContext< MatType, VecType >.
void lbs::AGSContext< Mat, Vec, KSP >::SetPreconditioner | ( | KSP & | solver | ) |
Definition at line 40 of file ags_context.cc.
|
virtual |
std::pair< int64_t, int64_t > lbs::AGSContext< Mat, Vec, KSP >::SystemSize | ( | ) |
Definition at line 15 of file ags_context.cc.
std::pair< int64_t, int64_t > lbs::AGSContext< MatType, VecType, SolverType >::SystemSize | ( | ) |
LBSSolver& lbs::AGSContext< MatType, VecType, SolverType >::lbs_solver_ |
Definition at line 23 of file ags_context.h.
std::vector<LinSolveBaseTypePtr> lbs::AGSContext< MatType, VecType, SolverType >::sub_solvers_list_ |
Definition at line 24 of file ags_context.h.