SystemAssembler.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class SystemAssembler

Parent class(es)

This class provides an assembler for systems of the form Ax = b. It differs from the default DOLFIN assembler in that it applies boundary conditions at the time of assembly, which preserves any symmetries in A.

SystemAssembler(std::shared_ptr<const Form> a, std::shared_ptr<const Form> L, std::vector<std::shared_ptr<const DirichletBC>> bcs)

Constructor

void assemble(GenericMatrix &A, GenericVector &b)

Assemble system (A, b)

void assemble(GenericMatrix &A)

Assemble matrix A

void assemble(GenericVector &b)

Assemble vector b

void assemble(GenericMatrix &A, GenericVector &b, const GenericVector &x0)

Assemble system (A, b) for (negative) increment dx, where x = x0 - dx is solution to system a == -L subject to bcs. Suitable for use inside a (quasi-)Newton solver.

void assemble(GenericVector &b, const GenericVector &x0)

Assemble rhs vector b for (negative) increment dx, where x = x0 - dx is solution to system a == -L subject to bcs. Suitable for use inside a (quasi-)Newton solver.

class Scratch