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:
46  partition_cells(MPI_Comm comm, int n, const mesh::CellType cell_type,
48  mesh::GhostMode ghost_mode);
49 };
50 } // namespace mesh
51 } // namespace dolfinx
dolfinx::mesh::CellType
CellType
Cell type identifier.
Definition: cell_types.h:23
dolfinx::graph::AdjacencyList
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: AdjacencyList.h:28
dolfinx::mesh::GhostMode
GhostMode
Enum for different partitioning ghost modes.
Definition: Mesh.h:37
dolfinx::mesh::Partitioning
Tools for partitioning meshes.
Definition: Partitioning.h:27