Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.1.0/v0.9.0/cpp
DOLFINx  0.1.0
DOLFINx C++ interface
Static Public Member Functions | List of all members
dolfinx::la::PETScOptions Class Reference

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. More...

#include <PETScOptions.h>

Static Public Member Functions

static void set (std::string option)
 Set PETSc option that takes no value.
 
template<typename T >
static void set (std::string option, const T value)
 Generic function for setting PETSc option.
 
static void clear (std::string option)
 Clear a PETSc option.
 
static 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.

PETScOptions::set("mat_mumps_icntl_14", 40);

The documentation for this class was generated from the following files: