Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/dd/d01/namespacedolfinx_1_1la_1_1petsc_1_1options.html
DOLFINx 0.8.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
Functions
dolfinx::la::petsc::options Namespace Reference

Functions

void set (std::string option)
 Set PETSc option that takes no value.
 
template<typename T >
void set (std::string option, const T value)
 Generic function for setting PETSc option.
 
void clear (std::string option)
 Clear a PETSc option.
 
void clear ()
 Clear PETSc global options database.
 

Detailed Description

These class provides static functions that permit users to set and retrieve PETSc options via the PETSc option/parameter system. The option must not be prefixed by '-', e.g.

la::petsc::options::set("mat_mumps_icntl_14", 40);