YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
collection_selection_internal.h
Go to the documentation of this file.
1// Copyright (c) 2025 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef COLLECTION_SELECTION_INTERNAL_H
6#define COLLECTION_SELECTION_INTERNAL_H
7
9#include "yac_mpi_internal.h"
10
40 struct yac_collection_selection const * collection_selection);
41
51 struct yac_collection_selection const * collection_selection);
52
64 struct yac_collection_selection const * collection_selection);
65
75 struct yac_collection_selection const * collection_selection);
76
99 struct yac_collection_selection const *collection_selection);
100
129 struct yac_collection_selection const * a,
130 struct yac_collection_selection const * b);
131
148 struct yac_collection_selection const * sel, MPI_Comm comm);
149
169 struct yac_collection_selection const * sel,
170 void * buffer, int buffer_size, int * position, MPI_Comm comm);
171
195 void const * buffer, int buffer_size, int * position, MPI_Comm comm);
196
197 /* end of group yac_collection_selection */
198
199#endif // COLLECTION_SELECTION_INTERNAL_H
int yac_collection_selection_is_contiguous(struct yac_collection_selection const *collection_selection)
Query whether a selection is contiguous.
size_t yac_collection_selection_get_collection_size(struct yac_collection_selection const *collection_selection)
Get the size of the collection selection.
struct yac_collection_selection * yac_collection_selection_unpack(void const *buffer, int buffer_size, int *position, MPI_Comm comm)
Unpack a collection selection from a contiguous MPI buffer.
size_t yac_collection_selection_get_pack_size(struct yac_collection_selection const *sel, MPI_Comm comm)
Compute the MPI pack size of a collection selection.
size_t const * yac_collection_selection_get_indices(struct yac_collection_selection const *collection_selection)
Get explicit selection indices if non-contiguous.
int yac_collection_selection_compare(struct yac_collection_selection const *a, struct yac_collection_selection const *b)
Compare two collection selections.
struct yac_collection_selection * yac_collection_selection_copy(struct yac_collection_selection const *collection_selection)
Selection of indices from a collection.
void yac_collection_selection_pack(struct yac_collection_selection const *sel, void *buffer, int buffer_size, int *position, MPI_Comm comm)
Pack a collection selection into a contiguous MPI buffer.
size_t yac_collection_selection_get_max_index(struct yac_collection_selection const *collection_selection)
Get the maximum index of a collection selection.
double * buffer