PETScObject

class dolfin.cpp.la.PETScObject

Bases: object

This class calls SubSystemsManager to initialise PETSc.

All PETSc objects must be derived from this class.

Constructor. Ensures that PETSc has been initialised.

static petsc_error(error_code: 'int', filename: 'std::string', petsc_function: 'std::string') → 'void'

Print error message for PETSc calls that return an error

thisown

The membership flag