tlm_adjoint.firedrake.projection
Projection operations with Firedrake.
Module Contents
- class tlm_adjoint.firedrake.projection.Projection(x, rhs, *args, **kwargs)
Represents the solution of a finite element variational problem performing a projection onto the space for x.
- Parameters:
x – A
firedrake.function.Function
defining the forward solution.rhs – A
ufl.core.expr.Expr
defining the expression to project onto the space for x. Should not depend on x.
Remaining arguments are passed to the
tlm_adjoint.firedrake.solve.EquationSolver
constructor.
- class tlm_adjoint.firedrake.projection.LocalProjection(x, rhs, *args, **kwargs)
Represents the solution of a finite element variational problem performing a projection onto the space for x, for the case where the mass matrix is element-wise local block diagonal.
- Parameters:
x – A
firedrake.function.Function
defining the forward solution.rhs – A
ufl.core.expr.Expr
defining the expression to project onto the space for x. Should not depend on x.
Remaining arguments are passed to the
tlm_adjoint.firedrake.solve.LocalEquationSolver
constructor.