DOLFINx 0.10.0.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
topologycomputation.h
1// Copyright (C) 2006-2024 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 <memory>
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
49std::tuple<std::vector<std::shared_ptr<graph::AdjacencyList<std::int32_t>>>,
50 std::shared_ptr<graph::AdjacencyList<std::int32_t>>,
51 std::shared_ptr<common::IndexMap>, std::vector<std::int32_t>>
52compute_entities(const Topology& topology, int dim, CellType entity_type);
53
66std::array<std::shared_ptr<graph::AdjacencyList<std::int32_t>>, 2>
67compute_connectivity(const Topology& topology, std::array<int, 2> d0,
68 std::array<int, 2> d1);
69
70} // 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::array< std::shared_ptr< graph::AdjacencyList< std::int32_t > >, 2 > compute_connectivity(const Topology &topology, std::array< int, 2 > d0, std::array< int, 2 > d1)
Compute connectivity (d0 -> d1) for given pair of entity types, given by topological dimension and in...
Definition topologycomputation.cpp:825
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(const Topology &topology, int dim, CellType entity_type)
Compute mesh entities of given topological dimension by computing cell-to-entity (tdim,...
Definition topologycomputation.cpp:768
CellType
Cell type identifier.
Definition cell_types.h:22