#include <belosLinProb.hh>
Public Member Functions | |
BelosLinProb () | |
Default Constructor. | |
virtual | ~BelosLinProb () |
Default Destructor. | |
BelosLinProb (Teuchos::RCP< const Teuchos::Comm< int > > comm) | |
BelosLinProb (concepts::SparseMatrix< T > &sparse, Teuchos::RCP< const Teuchos::Comm< int > > comm) | |
void | setConceptsRHS (const Vector< T > &rhs, Teuchos::RCP< const Teuchos::Comm< int > > comm) |
void | setConceptsRHS (Teuchos::RCP< const Teuchos::Comm< int > > comm) |
void | writeSolution (Vector< T > &vec, Teuchos::RCP< const Teuchos::Comm< int > > comm) |
void | writeSolution (Teuchos::RCP< const Teuchos::Comm< int > > comm) |
Teuchos::RCP< Tpetra::CrsMatrix< T, int, int > > | getCrsMat () |
Getter for CRS matrix used for preconditoner. | |
void | setCrsMat (Teuchos::RCP< Tpetra::CrsMatrix< T, int, int > > A) |
Setter for CRS matrix. | |
Decorator that decorates the Class Belos::LinearProblem<T, MV, OP> with interfaces to Concepts SparseMatrix and Vector.
Definition at line 26 of file belosLinProb.hh.
|
inline |
Default Constructor.
Definition at line 30 of file belosLinProb.hh.
|
inlinevirtual |
Default Destructor.
Definition at line 35 of file belosLinProb.hh.
concepts::BelosLinProb< T, MV, OP >::BelosLinProb | ( | Teuchos::RCP< const Teuchos::Comm< int > > | comm | ) |
Copies the informations of a concepts::SparseMatrix into a Tpetra::CrsMatrix and sets it to the Operator of the problem. If started parallel this method should just be used by the threads with id != 0. If started sequentiell use the other Constructor.
@waring The thread with id 0 must be called with BelosLinProb(concepts::SparseMatrix<T>& sparse, Teuchos::RCP<const Teuchos::Comm<int> > comm) otherwise the recieve operation in this method will cause a DEADLOCK.
Definition at line 323 of file belosLinProb.hh.
concepts::BelosLinProb< T, MV, OP >::BelosLinProb | ( | concepts::SparseMatrix< T > & | sparse, |
Teuchos::RCP< const Teuchos::Comm< int > > | comm | ||
) |
Copies the informations of a concepts::SparseMatrix into a Tpetra::CrsMatrix and sets it to the operator of the problem. If started parallel this method should just be used by the thread with id 0. All other threads must use BelosLinProb(Teuchos::RCP<const Teuchos::Comm<int> > comm), they recieve the informations of the seriell object concepts::SparseMatrix via this method
Definition at line 126 of file belosLinProb.hh.
|
inline |
Getter for CRS matrix used for preconditoner.
Definition at line 109 of file belosLinProb.hh.
void concepts::BelosLinProb< T, MV, OP >::setConceptsRHS | ( | const Vector< T > & | rhs, |
Teuchos::RCP< const Teuchos::Comm< int > > | comm | ||
) |
Copies the informations of a concepts::Vector into a Tpetra::Multivector and sets it to the rhs vector of the problem. If started parallel this method should just be used by the thread with id 0. All other threads must use setRHS(Teuchos::RCP<const Teuchos::Comm<int> > comm), they recieve the informations of the seriell object concepts::Vector via this method
Definition at line 425 of file belosLinProb.hh.
void concepts::BelosLinProb< T, MV, OP >::setConceptsRHS | ( | Teuchos::RCP< const Teuchos::Comm< int > > | comm | ) |
Copies the informations of a concepts::Vector into a Tpetra::Multivector and sets it to the rhs vector of the problem. If started parallel this method should just be used by threads with id != 0.
@waring The threads with id 0 must be called with void setRHS(Vector<T>& rhs, Teuchos::RCP<const Teuchos::Comm<int> > comm); otherwise the recieve operation in this method will cause a DEADLOCK.
Definition at line 494 of file belosLinProb.hh.
|
inline |
Setter for CRS matrix.
Definition at line 114 of file belosLinProb.hh.
void concepts::BelosLinProb< T, MV, OP >::writeSolution | ( | Teuchos::RCP< const Teuchos::Comm< int > > | comm | ) |
Copies the solution vector of this problem in a concepts::Vector. If started parallel this method should just be used by threads with id != 0.
@waring The threads with id 0 must be called with void writeSolution(Vector<T>& vec, Teuchos::RCP<const Teuchos::Comm<int> > comm) otherwise the recieve operation in this method will cause a DEADLOCK.
Definition at line 581 of file belosLinProb.hh.
void concepts::BelosLinProb< T, MV, OP >::writeSolution | ( | Vector< T > & | vec, |
Teuchos::RCP< const Teuchos::Comm< int > > | comm | ||
) |
Copies the solution vector of this problem in a concepts::Vector If started parallel this method should just be used by threads with id != 0.
Definition at line 543 of file belosLinProb.hh.