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.7.3
DOLFINx C++ interface
Loading...
Searching...
No Matches
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
14namespace dolfinx::common
15{
16class IndexMap;
17}
18
19namespace dolfinx::mesh
20{
21class Topology;
22}
23
25{
26template <typename T>
27class AdjacencyList;
28}
29
30namespace dolfinx::fem
31{
32class ElementDofLayout;
33
42std::tuple<common::IndexMap, int, std::vector<std::int32_t>>
43build_dofmap_data(MPI_Comm comm, const mesh::Topology& topology,
44 const std::vector<ElementDofLayout>& element_dof_layouts,
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:28
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition Topology.h:44
Miscellaneous classes, functions and types.
Definition dolfinx_common.h:8
Finite element method functionality.
Definition assemble_matrix_impl.h:25
std::tuple< common::IndexMap, int, std::vector< std::int32_t > > build_dofmap_data(MPI_Comm comm, const mesh::Topology &topology, const std::vector< ElementDofLayout > &element_dof_layouts, 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:651
Graph data structures and algorithms.
Definition dofmapbuilder.h:25
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32