DOLFIN-X
DOLFIN-X C++ interface
DiscreteOperators.h
1 // Copyright (C) 2015 Garth N. Wells
2 //
3 // This file is part of DOLFINX (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <memory>
10 
11 namespace dolfinx
12 {
13 
14 namespace function
15 {
16 class FunctionSpace;
17 }
18 
19 namespace la
20 {
21 class PETScMatrix;
22 }
23 
24 namespace fem
25 {
26 
28 
34 
38 
40 {
41 public:
51  const function::FunctionSpace& V1);
52 };
53 } // namespace fem
54 } // namespace dolfinx
dolfinx::fem::DiscreteOperators::build_gradient
static la::PETScMatrix build_gradient(const function::FunctionSpace &V0, const function::FunctionSpace &V1)
Build the discrete gradient operator A that takes a (P1, nodal Lagrange) to (lowest order Nedelec),...
dolfinx::la::PETScMatrix
It is a simple wrapper for a PETSc matrix pointer (Mat). Its main purpose is to assist memory managem...
Definition: PETScMatrix.h:38
dolfinx::function::FunctionSpace
This class represents a finite element function space defined by a mesh, a finite element,...
Definition: FunctionSpace.h:38
dolfinx::fem::DiscreteOperators
Discrete gradient operators providing derivatives of functions.
Definition: DiscreteOperators.h:40