# LocalSolver¶

class dolfin.cpp.fem.LocalSolver(*args)

Bases: object

• LocalSolver(a, L)

Constructor (shared pointer version)

• LocalSolver(a)

Constructor (shared pointer version)

SolverType_Cholesky = 1
SolverType_LU = 0
clear_factorization()

Reset (clear) any stored factorizations

factorize()

Factorise the local LHS matrices for all cells and store in cache

solve_global_rhs()

Solve local (cell-wise) problems A_e x_e = b_e, where A_e is the cell matrix LHS and b_e is the global RHS vector b restricted to the cell, i.e. b_e may contain contributions from neighbouring cells. The solution is exact for the case in which there is no coupling between cell contributions to the global matrix A, e.g. the discontinuous Galerkin matrix. The result is copied into x.

solve_local()

Solve local problems for given RHS and corresponding dofmap for RHS

solve_local_rhs()

Solve local (cell-wise) problems A_e x_e = b_e where A_e and b_e are the cell element tensors. Compared to solve_global_rhs this function calculates local RHS vectors for each cell and hence does not include contributions from neighbouring cells.

This function is useful for computing (approximate) cell-wise projections, for example for post-processing. It much more efficient than computing global projections.

thisown

The membership flag