template<class T, int MatOrder, class BlockFType = gsINSPrecondBlockF<T, MatOrder>>
class gismo::gsBlockPrecondStokes< T, MatOrder, BlockFType >
Block diagonal preconditioner for the Stokes problem.
- Template Parameters
-
T | coefficient type |
BlockFType | type of block \fF\f |
Inherits gsINSPreconditioner< T, MatOrder >.
|
virtual void | apply (const gsMatrix< T > &input, gsMatrix< T > &x) const |
| Apply the preconditioner. Computes the vector \fx = P^{-1} y\f.
|
|
virtual int | cols () const |
| Returns the number of columns of the preconditioner.
|
|
virtual std::string | getName () |
| Returns the preconditioner name as a string.
|
|
| gsBlockPrecondStokes (const std::map< std::string, gsSparseMatrix< T, MatOrder > > &mat, const gsOptionList &opt) |
| Constructor.
|
|
virtual int | rows () const |
| Returns the number of rows of the preconditioner.
|
|
virtual void | setOptions (const gsOptionList &) |
| Set options based on a gsOptionList object.
|
|
virtual void | update (const std::map< std::string, gsSparseMatrix< T, MatOrder > > &mat) |
| Update the preconditioner (new linearization or time step).
|
|
|
static gsOptionList | defaultOptions () |
| Returns default preconditioner options as a gsOptionList object.
|
|
static gsIdentityOp< T > | Identity (const index_t dim) |
| Identity operator.
|
|
static uPtr | make () |
| Returns a unique pointer to a newly created instance.
|
|
static uPtr | make (const std::map< std::string, gsSparseMatrix< T, MatOrder > > &mat, const gsOptionList &opt) |
| Returns a unique pointer to a newly created instance.
|
|
static uPtr | make (std::string precType, const std::map< std::string, gsSparseMatrix< T, MatOrder > > &mat, const gsOptionList &opt) |
| Returns a unique pointer to a newly created instance of the given preconditioner type.
|
|