Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/d9/df9/topologycomputation_8h_source.html
DOLFINx 0.7.3
DOLFINx C++ interface
Loading...
Searching...
No Matches
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 <array>
10#include <cstdint>
11#include <memory>
12#include <mpi.h>
13#include <tuple>
14#include <vector>
15
16namespace dolfinx::common
17{
18class IndexMap;
19}
20
21namespace dolfinx::graph
22{
23template <typename T>
24class AdjacencyList;
25}
26
27namespace dolfinx::mesh
28{
29class Topology;
30
42std::tuple<std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
43 std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
44 std::shared_ptr<common::IndexMap>, std::vector<std::int32_t>>
45compute_entities(MPI_Comm comm, const Topology& topology, int dim);
46
57std::array<std::shared_ptr<graph::AdjacencyList<std::int32_t>>, 2>
58compute_connectivity(const Topology& topology, int d0, int d1);
59
60} // namespace dolfinx::mesh
Miscellaneous classes, functions and types.
Definition dolfinx_common.h:8
Graph data structures and algorithms.
Definition dofmapbuilder.h:25
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32
std::tuple< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, std::shared_ptr< graph::AdjacencyList< std::int32_t > >, std::shared_ptr< common::IndexMap >, std::vector< std::int32_t > > 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:732
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:774