1#ifndef CHITECH_WGSLINSOLVEBASE_H
2#define CHITECH_WGSLINSOLVEBASE_H
17template<
class MatType,
class VecType,
class SolverType>
25 typedef std::shared_ptr<WGSContext<MatType,VecType,SolverType>>
WGSContextPtr;
34 auto& groupset = gs_context_ptr->groupset_;
36 solver_tol_options.residual_absolute = groupset.residual_tolerance_;
37 solver_tol_options.maximum_iterations = groupset.max_iterations_;
38 solver_tol_options.gmres_restart_interval = groupset.gmres_restart_intvl_;
const std::string iterative_method_
ToleranceOptions & ToleranceOptions()
LinearSolver(const std::string &iterative_method, LinSolveContextPtr context_ptr)
void PreSolveCallback() override
void PostSolveCallback() override
void PreSetupCallback() override
virtual ~WGSLinearSolver() override
std::shared_ptr< WGSContext< MatType, VecType, SolverType > > WGSContextPtr
void SetConvergenceTest() override
virtual void SetSystemSize() override
WGSLinearSolver(WGSContextPtr gs_context_ptr)
void PostSetupCallback() override
std::vector< double > saved_q_moments_local_
void SetInitialGuess() override
virtual void SetSystem() override
void SetPreconditioner() override
std::string IterativeMethodPETScName(IterativeMethod it_method)