DOLFIN-X
DOLFIN-X C++ interface
KaHIP.h
1 // Copyright (C) 2019 Igor A. Baratta
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/graph/AdjacencyList.h>
11 #include <mpi.h>
12 
13 namespace dolfinx
14 {
15 
16 namespace graph
17 {
18 
20 class KaHIP
21 {
22 #ifdef HAS_KAHIP
23 public:
24  // Standard KaHIP partition
26  partition(MPI_Comm mpi_comm, int nparts,
27  const AdjacencyList<unsigned long long>& adj_graph, bool ghosting);
28 
29 #endif
30 };
31 } // namespace graph
32 } // namespace dolfinx
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::graph::KaHIP
This class provides an interface to KaHIP parallel partitioner.
Definition: KaHIP.h:21