Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.3.0/v0.9.0/cpp
DOLFINx  0.3.0
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 <dolfinx/graph/AdjacencyList.h>
10 #include <dolfinx/graph/scotch.h>
11 #include <functional>
12 #include <memory>
13 #include <mpi.h>
14 #include <tuple>
15 
16 namespace dolfinx::common
17 {
18 class IndexMap;
19 }
20 
21 namespace dolfinx::mesh
22 {
23 class Topology;
24 }
25 
26 namespace dolfinx::fem
27 {
28 class ElementDofLayout;
29 class CoordinateElement;
30 
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  const std::function<std::vector<int>(
44  const graph::AdjacencyList<std::int32_t>&)>& reorder_fn);
45 
46 } // namespace dolfinx::fem
Miscellaneous classes, functions and types.
Finite element method functionality.
Definition: assemble_matrix_impl.h:23
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, 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:517
Mesh data structures and algorithms on meshes.
Definition: DirichletBC.h:20