PETScLUSolver.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
PETScLUSolver¶ Parent class(es)
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.
-
PETScLUSolver(MPI_Comm comm, std::string method = "default")¶ Constructor
-
PETScLUSolver(std::string method = "default")¶ Constructor
Constructor
Constructor
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)¶ Sets the prefix used by PETSc when searching the options database
-
std::string
get_options_prefix() const¶ Returns the prefix used by PETSc when searching the options database
-
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
-
static std::map<std::string, std::string>
methods()¶ Return a list of available solver methods
-
static Parameters
default_parameters()¶ Default parameter values
-
std::string
parameter_type() const¶ Return parameter type: “krylov_solver” or “lu_solver”
-