Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/db/df8/sparsitybuild_8h_source.html
DOLFINx 0.8.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
56 la::SparsityPattern& pattern,
57 std::array<std::span<const std::int32_t>, 2> cells,
58 std::array<std::reference_wrapper<const DofMap>, 2> dofmaps);
59
60} // namespace sparsitybuild
61} // 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:27
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:15
Finite element method functionality.
Definition assemble_matrix_impl.h:26
Linear algebra interface.
Definition sparsitybuild.h:15