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 // Interface to KaHIP parallel partitioner
14 namespace dolfinx::graph::KaHIP
15 {
16 #ifdef HAS_KAHIP
17 // Standard KaHIP partition
18 AdjacencyList<std::int32_t>
19 partition(MPI_Comm mpi_comm, int nparts,
20  const AdjacencyList<unsigned long long>& adj_graph, bool ghosting);
21 
22 #endif
23 } // namespace dolfinx::graph::KaHIP
dolfinx::graph::SCOTCH::partition
AdjacencyList< std::int32_t > partition(const MPI_Comm mpi_comm, const int nparts, const AdjacencyList< SCOTCH_Num > &local_graph, const std::vector< std::size_t > &node_weights, std::int32_t num_ghost_nodes, bool ghosting)
Compute distributed graph partition.
Definition: SCOTCH.cpp:123