DOLFIN-X
DOLFIN-X 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 <dolfinx/graph/AdjacencyList.h>
10 #include <memory>
11 #include <mpi.h>
12 #include <tuple>
13 #include <vector>
14 
15 namespace dolfinx
16 {
17 
18 namespace common
19 {
20 class IndexMap;
21 }
22 
23 namespace mesh
24 {
25 class Topology;
26 } // namespace mesh
27 
28 namespace fem
29 {
30 class ElementDofLayout;
31 class CoordinateElement;
32 
39 std::tuple<std::shared_ptr<common::IndexMap>, int,
40  graph::AdjacencyList<std::int32_t>>
41 build_dofmap_data(MPI_Comm comm, const mesh::Topology& topology,
42  const ElementDofLayout& element_dof_layout);
43 
44 } // namespace fem
45 } // namespace dolfinx
std::tuple< std::shared_ptr< common::IndexMap >, int, graph::AdjacencyList< std::int32_t > > build_dofmap_data(MPI_Comm comm, const mesh::Topology &topology, const ElementDofLayout &element_dof_layout)
Build dofmap data for an element on a mesh topology.
Definition: dofmapbuilder.cpp:512