Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/dc/d87/dofmapbuilder_8h_source.html
DOLFINx  0.5.1
DOLFINx C++ interface
dofmapbuilder.h
1 // Copyright (C) 2008-2018 Anders Logg, Ola Skavhaug and 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 <cstdint>
10 #include <functional>
11 #include <mpi.h>
12 #include <tuple>
13 
14 namespace dolfinx::common
15 {
16 class IndexMap;
17 }
18 
19 namespace dolfinx::mesh
20 {
21 class Topology;
22 }
23 
24 namespace dolfinx::graph
25 {
26 template <typename T>
27 class AdjacencyList;
28 }
29 
30 namespace dolfinx::fem
31 {
32 class ElementDofLayout;
33 
42 std::tuple<common::IndexMap, int, graph::AdjacencyList<std::int32_t>>
43 build_dofmap_data(MPI_Comm comm, const mesh::Topology& topology,
44  const ElementDofLayout& element_dof_layout,
45  const std::function<std::vector<int>(
46  const graph::AdjacencyList<std::int32_t>&)>& reorder_fn);
47 
48 } // namespace dolfinx::fem
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: AdjacencyList.h:26
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition: Topology.h:44
Miscellaneous classes, functions and types.
Finite element method functionality.
Definition: assemble_matrix_impl.h:25
std::tuple< common::IndexMap, int, graph::AdjacencyList< std::int32_t > > build_dofmap_data(MPI_Comm comm, const mesh::Topology &topology, const ElementDofLayout &element_dof_layout, const std::function< std::vector< int >(const graph::AdjacencyList< std::int32_t > &)> &reorder_fn)
Build dofmap data for an element on a mesh topology.
Definition: dofmapbuilder.cpp:571
Graph data structures and algorithms.
Definition: dofmapbuilder.h:25
Mesh data structures and algorithms on meshes.
Definition: DofMap.h:30