DOLFINx 0.9.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>
25}
26
27namespace dolfinx::mesh
28{
29class Topology;
30
47std::tuple<std::vector<std::shared_ptr<graph::AdjacencyList<std::int32_t>>>,
48 std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
49 std::shared_ptr<common::IndexMap>, std::vector<std::int32_t>>
50compute_entities(MPI_Comm comm, const Topology& topology, int dim, int index);
51
62std::array<std::shared_ptr<graph::AdjacencyList<std::int32_t>>, 2>
63compute_connectivity(const Topology& topology,
64 std::pair<std::int8_t, std::int8_t> d0,
65 std::pair<std::int8_t, std::int8_t> d1);
66
67} // namespace dolfinx::mesh
Definition topologycomputation.h:24
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:767
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:817