|
AbstractISTLSolver.hpp
Go to the documentation of this file.
198 ss << "Full linear solver tolerance not achieved. The reduction is:" << result.reduction << " after "
virtual void getResidual(Vector &b) const =0 Get the residual vector. virtual void prepare(const Matrix &M, Vector &b)=0 Prepare the solver with the given matrix and right-hand side vector. virtual void setActiveSolver(int num)=0 Set the active solver by its index. virtual int iterations() const =0 Get the number of iterations used in the last solve. virtual void setMatrix(const SparseMatrixAdapter &M)=0 Set the matrix for the solver. virtual void eraseMatrix()=0 Signals that the memory for the matrix internally in the solver could be erased. virtual int numAvailableSolvers() const =0 Get the number of available solvers. virtual int getSolveCount() const =0 Get the count of how many times the solver has been called. Dune::OwnerOverlapCopyCommunication< int, int > CommunicationType Definition: AbstractISTLSolver.hpp:48 typename SparseMatrixAdapter::IstlMatrix Matrix Definition: AbstractISTLSolver.hpp:53 virtual void prepare(const SparseMatrixAdapter &M, Vector &b)=0 Prepare the solver with the given sparse matrix and right-hand side vector. virtual ~AbstractISTLSolver()=default virtual const CommunicationType * comm() const =0 Get the communication object used by the solver. static bool checkConvergence(const Dune::InverseOperatorResult &result, const FlowLinearSolverParameters ¶meters) Check the convergence of the linear solver. Definition: AbstractISTLSolver.hpp:192 Definition: blackoilbioeffectsmodules.hh:45 Dune::InverseOperatorResult InverseOperatorResult Definition: GpuBridge.hpp:32 This class carries all parameters for the NewtonIterationBlackoilInterleaved class. Definition: FlowLinearSolverParameters.hpp:98 bool ignoreConvergenceFailure_ Definition: FlowLinearSolverParameters.hpp:110 double relaxed_linear_solver_reduction_ Definition: FlowLinearSolverParameters.hpp:100 |