DOLFINx 0.9.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
sparsitybuild.h
1// Copyright (C) 2007-2023 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 <array>
10#include <cstdint>
11#include <functional>
12#include <span>
13
14namespace dolfinx::la
15{
16class SparsityPattern;
17}
18
19namespace dolfinx::fem
20{
21class DofMap;
22
24namespace sparsitybuild
25{
38void cells(la::SparsityPattern& pattern,
39 std::array<std::span<const std::int32_t>, 2> cells,
40 std::array<std::reference_wrapper<const DofMap>, 2> dofmaps);
41
57 la::SparsityPattern& pattern,
58 std::array<std::span<const std::int32_t>, 2> cells,
59 std::array<std::reference_wrapper<const DofMap>, 2> dofmaps);
60
61} // namespace sparsitybuild
62} // namespace dolfinx::fem
Definition SparsityPattern.h:26
void interior_facets(la::SparsityPattern &pattern, std::array< std::span< const std::int32_t >, 2 > cells, std::array< std::reference_wrapper< const DofMap >, 2 > dofmaps)
Iterate over interior facets and insert entries into sparsity pattern.
Definition sparsitybuild.cpp:28
void cells(la::SparsityPattern &pattern, std::array< std::span< const std::int32_t >, 2 > cells, std::array< std::reference_wrapper< const DofMap >, 2 > dofmaps)
Iterate over cells and insert entries into sparsity pattern.
Definition sparsitybuild.cpp:16
Finite element method functionality.
Definition assemble_matrix_impl.h:26
Linear algebra interface.
Definition sparsitybuild.h:15