DOLFIN-X
DOLFIN-X C++ interface
dolfinx
mesh
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
26
class
Partitioning
27
{
28
public
:
45
static
graph::AdjacencyList<std::int32_t>
46
partition_cells(MPI_Comm comm,
int
n,
const
mesh::CellType
cell_type,
47
const
graph::AdjacencyList<std::int64_t>
& cells,
48
mesh::GhostMode
ghost_mode);
49
};
50
}
// namespace mesh
51
}
// 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:
AdjacencyList.h:27
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
Generated by
1.8.17