#include <PETScPreconditioner.h>
|
static void | set_type (PETScKrylovSolver &solver, std::string type) |
| Select type by name.
|
|
static std::map< std::string, std::string > | preconditioners () |
| Return a list of available preconditioners.
|
|
static void | petsc_error (int error_code, std::string filename, std::string petsc_function) |
| Print error message for PETSc calls that return an error.
|
|
|
class | PETScSNESSolver |
|
class | PETScTAOSolver |
|
This class is a wrapper for configuring PETSc preconditioners. It does not own a preconditioner. It can take a PETScKrylovSolver and set the preconditioner type and parameters.
◆ set_coordinates()
void PETScPreconditioner::set_coordinates |
( |
const std::vector< double > & |
x, |
|
|
std::size_t |
dim |
|
) |
| |
Set the coordinates of the operator (matrix) rows and geometric dimension d. This is can be used by required for certain preconditioners, e.g. ML. The input for this function can be generated using GenericDofMap::tabulate_all_dofs.
◆ set_fieldsplit()
void PETScPreconditioner::set_fieldsplit |
( |
PETScKrylovSolver & |
solver, |
|
|
const std::vector< std::vector< dolfin::la_index >> & |
fields, |
|
|
const std::vector< std::string > & |
split_names |
|
) |
| |
Assign indices from fields as separate PETSc index sets, with given names
- Parameters
-
solver | (PETScKrylovSolver&) |
fields | (std::vector<std::vector<dolfin::la_index>>&) |
split_names | (std::vector<std::string>&) |
The documentation for this class was generated from the following files:
- /home/fenics/shared/dolfin/dolfin/la/PETScPreconditioner.h
- /home/fenics/shared/dolfin/dolfin/la/PETScPreconditioner.cpp