Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.1.0/v0.9.0/cpp
DOLFINx  0.1.0
DOLFINx C++ interface
graphbuild.h
1 // Copyright (C) 2010-2021 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 <dolfinx/common/MPI.h>
12 #include <dolfinx/graph/AdjacencyList.h>
13 #include <utility>
14 #include <vector>
15 #include <xtensor/xarray.hpp>
16 
17 namespace dolfinx::mesh
18 {
19 
20 enum class CellType;
21 
25 std::pair<graph::AdjacencyList<std::int64_t>, std::array<std::int32_t, 2>>
26 build_dual_graph(const MPI_Comm comm,
27  const graph::AdjacencyList<std::int64_t>& cell_vertices,
28  int tdim);
29 
32 std::pair<graph::AdjacencyList<std::int32_t>, xt::xtensor<std::int64_t, 2>>
33 build_local_dual_graph(const graph::AdjacencyList<std::int64_t>& cell_vertices,
34  int tdim);
35 
36 } // namespace dolfinx::mesh
dolfinx::mesh
Mesh data structures and algorithms on meshes.
Definition: DirichletBC.h:22
dolfinx::mesh::build_dual_graph
std::pair< graph::AdjacencyList< std::int64_t >, std::array< std::int32_t, 2 > > build_dual_graph(const MPI_Comm comm, const graph::AdjacencyList< std::int64_t > &cell_vertices, int tdim)
Build distributed dual graph (cell-cell connections) from minimal mesh data, and return (graph,...
Definition: graphbuild.cpp:476
dolfinx::mesh::CellType
CellType
Cell type identifier.
Definition: cell_types.h:21
dolfinx::mesh::build_local_dual_graph
std::pair< graph::AdjacencyList< std::int32_t >, xt::xtensor< std::int64_t, 2 > > build_local_dual_graph(const graph::AdjacencyList< std::int64_t > &cell_vertices, int tdim)
Compute local part of the dual graph, and return (local_graph, facet_cell_map, number of local edges ...
Definition: graphbuild.cpp:498