DOLFINx 0.8.0
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
44std::tuple<std::vector<std::shared_ptr<graph::AdjacencyList<std::int32_t>>>,
45 std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
46 std::shared_ptr<common::IndexMap>, std::vector<std::int32_t>>
47compute_entities(MPI_Comm comm, const Topology& topology, int dim, int index);
48
59std::array<std::shared_ptr<graph::AdjacencyList<std::int32_t>>, 2>
60compute_connectivity(const Topology& topology,
61 std::pair<std::int8_t, std::int8_t> d0,
62 std::pair<std::int8_t, std::int8_t> d1);
63
64} // namespace dolfinx::mesh
Miscellaneous classes, functions and types.
Definition dolfinx_common.h:8
Graph data structures and algorithms.
Definition dofmapbuilder.h:26
Mesh data structures and algorithms on meshes.
Definition DofMap.h:32
std::tuple< std::vector< 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, int index)
Compute mesh entities of given topological dimension by computing entity-to-vertex connectivity (dim,...
Definition topologycomputation.cpp:745
std::array< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, 2 > compute_connectivity(const Topology &topology, std::pair< std::int8_t, std::int8_t > d0, std::pair< std::int8_t, std::int8_t > d1)
Compute connectivity (d0 -> d1) for given pair of entity types, given by topological dimension and in...
Definition topologycomputation.cpp:795