belosSolver.hh
bool createSolver_()
Creates Solver with given params sets by setPrecParam and setPrecType.
Definition: belosSolver_decl.hh:113
Teuchos::RCP< Teuchos::ParameterList > solverParam_
Parameter for solver and preconditioner.
Definition: belosSolver.hh:237
Concepts interface to Trilinos Belos solver with different ifpack2 preconditioners and different iter...
Definition: belosSolver.hh:32
void setSolverParam(Teuchos::RCP< Teuchos::ParameterList > param)
Set Solver parameter list via Teuchos::parameter list.
Definition: belosSolver.hh:70
virtual void apply_()
Version for the other threads i.e. MyPID != 0.
Definition: belosSolver_decl.hh:193
Teuchos::RCP< LP > getLinearProblem()
Definition: belosSolver.hh:153
virtual std::ostream & info(std::ostream &os) const
virtual void operator()(const Vector< T > &fncY, Vector< T > &fncX)
Solving operator for the root thread.
Definition: belosSolver.hh:62
Teuchos::RCP< solverManager > getSolverManager()
Gets the solver via solver manager.
Definition: belosSolver.hh:148
Teuchos::RCP< solverManager > solverManager_
Of Type Belos::Solvermanager Handles choice of solver like CG or gmRes.
Definition: belosSolver.hh:241
void prepare()
Builds the Preconditioner and the solver (sets prepare to true)
Definition: belosSolver.hh:194
Teuchos::RCP< const Teuchos::Comm< int > > Comm_
Communicator of the mpi thread.
Definition: belosSolver.hh:231
Decorator that decorates the Class Belos::LinearProblem<T, MV, OP> with interfaces to Concepts Sparse...
Definition: belosLinProb.hh:26
Teuchos::RCP< Teuchos::ParameterList > precParam_
Definition: belosSolver.hh:238
BelosSolver(concepts::SparseMatrix< T > &sparse, Teuchos::RCP< const Teuchos::Comm< int > > comm)
Constructor for the root thread.
Definition: belosSolver.hh:257
void setSolverManager(Teuchos::RCP< solverManager > manager)
Sets the solver via solver manager.
Definition: belosSolver.hh:139
virtual void operator()()
Solving operator for other the non-root threads.
Definition: belosSolver.hh:53
Teuchos::RCP< Teuchos::ParameterList > getPrecParam()
Gets the parameter list for the preconditioner.
Definition: belosSolver.hh:131
void setPrecType(std::string type)
Sets the preconditioner Type to one of the followings.
Definition: belosSolver.hh:182
void setSolverParam(int maxIter, int maxRestarts, double tol=1e-10, int blockSize=1, int outFreq=1)
Set Solver parameter list via values.
Definition: belosSolver.hh:80
void setSolverType(std::string type)
Sets the solver type to one of the followings.
Definition: belosSolver.hh:163
Teuchos::RCP< Teuchos::ParameterList > getSolverParam()
Get solver parameter list.
Definition: belosSolver.hh:98
Teuchos::RCP< Ifpack2::Preconditioner< T, int > > prec_
The Preconditionier.
Definition: belosSolver.hh:244
Abstract class for an operator acting on vectors only, not arbitrary functions.
Definition: compositions.hh:115
bool createPrec_()
Creates Preconditioner with given params sets by setSolverParam and setSolverType.
Definition: belosSolver_decl.hh:107
void setPrecParam(Teuchos::RCP< Teuchos::ParameterList > param)
Set preconditioner parameter list via Teuchos::parameter list.
Definition: belosSolver.hh:106
void setPrecParam(double fill, double tol=1e-5, int absTresh=0, int relTresh=1, double relax=0)
Set preconditoner parameter list via values.
Definition: belosSolver.hh:116
Belos::SolverManager< T, MV, OP > solverManager
Definition: belosSolver.hh:40