|
programmer's documentation
|
#include "cs_defs.h"#include <assert.h>#include <float.h>#include <math.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "bft_mem.h"#include "bft_printf.h"#include "cs_sort_partition.h"
Functions | |
| void | cs_sort_partition_dest_rank_id (cs_lnum_t sampling_factor, size_t elt_size, cs_lnum_t n_elts, const void *elts, const cs_lnum_t *weight, const cs_lnum_t order[], int dest_rank_id[], cs_sort_partition_s_to_elt_t s_to_elt, cs_sort_partition_compare_t compare, const void *f_input, MPI_Comm comm) |
| Determine to which rank data elements should be sent for parallel sorting or ordering. More... | |
| void cs_sort_partition_dest_rank_id | ( | cs_lnum_t | sampling_factor, |
| size_t | elt_size, | ||
| cs_lnum_t | n_elts, | ||
| const void * | elts, | ||
| const cs_lnum_t * | weight, | ||
| const cs_lnum_t | order[], | ||
| int | dest_rank_id[], | ||
| cs_sort_partition_s_to_elt_t | s_to_elt, | ||
| cs_sort_partition_compare_t | compare, | ||
| const void * | f_input, | ||
| MPI_Comm | comm | ||
| ) |
Determine to which rank data elements should be sent for parallel sorting or ordering.
| [in] | sampling_factor | number of samples per rank |
| [in] | elt_size | size associated with each element |
| [in] | n_elts | number of elements to be indexed |
| [in] | elts | array of elements |
| [in] | weight | optional weight of each element, or NULL |
| [in] | order | ordering array |
| [out] | dest_rank_id | destination rank id (size: n_elts) |
| [in] | s_to_elt | coordinate to element conversion function |
| [in] | compare | comparison function |
| [in] | f_input | optional input to s_to_elt and compare, or NULL |
| [in] | comm | MPI communicator on which we build the global index |
1.8.13