|
| PETScLUSolver (MPI_Comm comm, std::string method="default") |
| Constructor.
|
|
| PETScLUSolver (std::string method="default") |
| Constructor.
|
|
| PETScLUSolver (MPI_Comm comm, std::shared_ptr< const PETScMatrix > A, std::string method="default") |
| Constructor.
|
|
| PETScLUSolver (std::shared_ptr< const PETScMatrix > A, std::string method="default") |
| Constructor.
|
|
| ~PETScLUSolver () |
| Destructor.
|
|
void | set_operator (std::shared_ptr< const GenericLinearOperator > A) |
| Set operator (matrix)
|
|
void | set_operator (const PETScMatrix &A) |
| Set operator (matrix)
|
|
std::size_t | solve (GenericVector &x, const GenericVector &b) |
| Solve linear system Ax = b.
|
|
std::size_t | solve (GenericVector &x, const GenericVector &b, bool transpose) |
| Solve linear system Ax = b (A^t x = b if transpose is true)
|
|
std::size_t | solve (const GenericLinearOperator &A, GenericVector &x, const GenericVector &b) |
| Solve linear system Ax = b.
|
|
std::size_t | solve (const PETScMatrix &A, PETScVector &x, const PETScVector &b) |
| Solve linear system Ax = b.
|
|
void | set_options_prefix (std::string options_prefix) |
|
std::string | get_options_prefix () const |
|
void | set_from_options () const |
| Set options from the PETSc options database.
|
|
MPI_Comm | mpi_comm () const |
| Returns the MPI communicator.
|
|
std::string | str (bool verbose) const |
| Return informal string representation (pretty-print)
|
|
KSP | ksp () const |
| Return PETSc KSP pointer.
|
|
std::string | parameter_type () const |
| Return parameter type: "krylov_solver" or "lu_solver".
|
|
virtual void | set_operators (std::shared_ptr< const GenericLinearOperator > A, std::shared_ptr< const GenericLinearOperator > P) |
| Set operator (matrix) and preconditioner matrix.
|
|
virtual void | update_parameters (const Parameters ¶meters) |
| Update solver parameters (useful for LinearSolver wrapper)
|
|
| Variable () |
| Create unnamed variable.
|
|
| Variable (const std::string name, const std::string label) |
| Create variable with given name and label.
|
|
| Variable (const Variable &variable) |
| Copy constructor.
|
|
virtual | ~Variable () |
| Destructor.
|
|
const Variable & | operator= (const Variable &variable) |
| Assignment operator.
|
|
void | rename (const std::string name, const std::string label) |
| Rename variable.
|
|
std::string | name () const |
| Return name.
|
|
std::string | label () const |
| Return label (description)
|
|
std::size_t | id () const |
|
This class implements the direct solution (LU factorization) for linear systems of the form Ax = b. It is a wrapper for the LU solver of PETSc.