DOLFINx 0.12.0.0
DOLFINx C++
Loading...
Searching...
No Matches
sfc.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 "AdjacencyList.h"
10#include "partition.h"
11#include <cstdint>
12#include <mpi.h>
13#include <optional>
14#include <span>
15#include <vector>
16
19
20namespace dolfinx::graph
21{
58std::vector<int> partition_sfc_morton(
59 MPI_Comm comm, int nparts, std::span<const double> x, int gdim,
60 std::optional<std::span<const std::int32_t>> weights = std::nullopt);
61
88std::vector<int> partition_sfc_hilbert(
89 MPI_Comm comm, int nparts, std::span<const double> x, int gdim,
90 std::optional<std::span<const std::int32_t>> weights = std::nullopt);
91} // namespace dolfinx::graph
Graph data structures and algorithms.
Definition AdjacencyList.h:23
std::vector< int > partition_sfc_hilbert(MPI_Comm comm, int nparts, std::span< const double > x, int gdim, std::optional< std::span< const std::int32_t > > weights=std::nullopt)
Partition points into nparts groups of (approximately) equal size using a Hilbert space-filling curve...
Definition sfc.cpp:627
std::vector< int > partition_sfc_morton(MPI_Comm comm, int nparts, std::span< const double > x, int gdim, std::optional< std::span< const std::int32_t > > weights=std::nullopt)
Partition points into nparts groups of (approximately) equal size using a Morton ('Z-order') space-fi...
Definition sfc.cpp:619