PETScOptions

class dolfin.cpp.la.PETScOptions

Bases: object

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);
static clear(option: 'std::string') → 'void'

Clear PETSc option

static set(*args) → 'void'

Overloaded versions

  • set(option)

    Set PETSc option that takes no value

  • set(option, value)

    Set PETSc boolean option

  • set(option, value)

    Set PETSc integer option

  • set(option, value)

    Set PETSc double option

  • set(option, value)

    Set PETSc string option

  • set(option, value)

    Genetic function for setting PETSc option

thisown

The membership flag