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
topologycomputation.h
1 // Copyright (C) 2006-2020 Anders Logg 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 "cell_types.h"
10 #include <array>
11 #include <cstdint>
12 #include <dolfinx/common/MPI.h>
13 #include <memory>
14 #include <tuple>
15 
16 namespace dolfinx
17 {
18 
19 namespace common
20 {
21 class IndexMap;
22 }
23 
24 namespace graph
25 {
26 template <typename T>
27 class AdjacencyList;
28 }
29 
30 namespace mesh
31 {
32 class Topology;
33 
43 std::tuple<std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
44  std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
45  std::shared_ptr<common::IndexMap>>
46 compute_entities(MPI_Comm comm, const Topology& topology, int dim);
47 
58 std::array<std::shared_ptr<graph::AdjacencyList<std::int32_t>>, 2>
59 compute_connectivity(const Topology& topology, int d0, int d1);
60 
61 } // namespace mesh
62 } // namespace dolfinx
dolfinx::mesh::compute_entities
std::tuple< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, std::shared_ptr< graph::AdjacencyList< std::int32_t > >, std::shared_ptr< common::IndexMap > > compute_entities(MPI_Comm comm, const Topology &topology, int dim)
Compute mesh entities of given topological dimension by computing entity-to-vertex connectivity (dim,...
Definition: topologycomputation.cpp:626
dolfinx::mesh::compute_connectivity
std::array< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, 2 > compute_connectivity(const Topology &topology, int d0, int d1)
Compute connectivity (d0 -> d1) for given pair of topological dimensions.
Definition: topologycomputation.cpp:667