DOLFIN-X
DOLFIN-X C++ interface
Partitioning.h
1 // Copyright (C) 2020 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 <cstdint>
10 #include <dolfinx/common/MPI.h>
11 #include <dolfinx/graph/AdjacencyList.h>
12 #include <vector>
13 
14 namespace dolfinx
15 {
16 
17 namespace mesh
18 {
19 
20 enum class CellType;
21 class Topology;
22 enum class GhostMode : int;
23 
25 
27 {
28 public:
35  static std::vector<bool>
36  compute_vertex_exterior_markers(const mesh::Topology& topology_local);
37 
55  partition_cells(MPI_Comm comm, int n, const mesh::CellType cell_type,
57  mesh::GhostMode ghost_mode);
58 };
59 } // namespace mesh
60 } // namespace dolfinx
dolfinx::mesh::CellType
CellType
Cell type identifier.
Definition: cell_types.h:22
dolfinx::graph::AdjacencyList
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: assemble_matrix_impl.h:26
dolfinx::mesh::GhostMode
GhostMode
Enum for different partitioning ghost modes.
Definition: Mesh.h:36
dolfinx::mesh::Partitioning
Tools for partitioning meshes.
Definition: Partitioning.h:26
dolfinx::mesh::Topology
Topology stores the topology of a mesh, consisting of mesh entities and connectivity (incidence relat...
Definition: Topology.h:58