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.7.3
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::mesh
20{
21class Topology;
22}
23
24namespace dolfinx::fem
25{
26class DofMap;
27
29namespace sparsitybuild
30{
37void cells(la::SparsityPattern& pattern, std::span<const std::int32_t> cells,
38 std::array<std::reference_wrapper<const DofMap>, 2> dofmaps);
39
49 la::SparsityPattern& pattern, std::span<const std::int32_t> facets,
50 std::array<std::reference_wrapper<const DofMap>, 2> dofmaps);
51
52} // namespace sparsitybuild
53} // namespace dolfinx::fem
Sparsity pattern data structure that can be used to initialize sparse matrices. After assembly,...
Definition SparsityPattern.h:26
void cells(la::SparsityPattern &pattern, std::span< const std::int32_t > cells, std::array< std::reference_wrapper< const DofMap >, 2 > dofmaps)
Iterate over cells and insert entries into sparsity pattern.
Definition sparsitybuild.cpp:18
void interior_facets(la::SparsityPattern &pattern, std::span< const std::int32_t > facets, std::array< std::reference_wrapper< const DofMap >, 2 > dofmaps)
Iterate over interior facets and insert entries into sparsity pattern.
Definition sparsitybuild.cpp:28
Finite element method functionality.
Definition assemble_matrix_impl.h:25
Linear algebra interface.
Definition sparsitybuild.h:15
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32