My Project
programmer's documentation
|
#include "cs_defs.h"
Go to the source code of this file.
Functions | |
void | CS_PROCF (parhis, PARHIS)(cs_int_t *node |
static void | cs_parall_counter (cs_gnum_t cpt[], const int n) |
Sum values of a counter on all default communicator processes. More... | |
static void | cs_parall_counter_max (cs_lnum_t cpt[], const int n) |
Maximum values of a counter on all default communicator processes. More... | |
static void | cs_parall_sum (int n, cs_datatype_t datatype, void *val) |
Sum values of a given datatype on all default communicator processes. More... | |
static void | cs_parall_max (int n, cs_datatype_t datatype, void *val) |
Maximum values of a given datatype on all default communicator processes. More... | |
static void | cs_parall_min (int n, cs_datatype_t datatype, void *val) |
Minimum values of a given datatype on all default communicator processes. More... | |
static void | cs_parall_bcast (int root_rank, int n, cs_datatype_t datatype, void *val) |
Broadcast values of a given datatype to all default communicator processes. More... | |
void | cs_parall_allgather_r (int n_elts, int n_g_elts, cs_real_t array[], cs_real_t g_array[]) |
Build a global array from each local array in each domain. More... | |
void | cs_parall_max_loc_vals (int n, cs_real_t *max, cs_real_t max_loc_vals[]) |
Maximum value of a real and the value of related array on all default communicator processes. More... | |
void | cs_parall_min_loc_vals (int n, cs_real_t *min, cs_real_t min_loc_vals[]) |
Minimum value of a real and the value of related array on all default communicator processes. More... | |
void | cs_parall_min_id_rank_r (cs_lnum_t *elt_id, int *rank_id, cs_real_t dis2mn) |
Given an (id, rank, value) tuple, return the local id and rank corresponding to the global minimum value. More... | |
size_t | cs_parall_get_min_coll_buf_size (void) |
Return minimum recommended scatter or gather buffer size. More... | |
void | cs_parall_set_min_coll_buf_size (size_t buffer_size) |
Define minimum recommended scatter or gather buffer size. More... | |
Variables | |
void cs_int_t * | ndrang |
void cs_int_t cs_real_t | var [] |
void cs_int_t cs_real_t cs_real_t * | varcap |
Build a global array from each local array in each domain.
Local arrays are appended in order of owning MPI rank. The size of each local array may be different.
Use of this function may be quite practical, but should be limited to user functions, as it may limit scalability (especially as regards memory usage).
[in] | n_elts | size of the local array |
[in] | n_g_elts | size of the global array |
[in] | array | local array (size: n_elts) |
[out] | g_array | global array (size: n_g_elts) |
|
inlinestatic |
Broadcast values of a given datatype to all default communicator processes.
[in] | root_rank | rank from which to broadcast |
[in] | n | number of values |
[in] | datatype | matching Code_Saturne datatype |
[in,out] | val | values to broadcast; input on root_rank, output on others (size: n) |
|
inlinestatic |
Sum values of a counter on all default communicator processes.
[in,out] | cpt | local counter in, global counter out (size: n) |
[in] | n | number of values |
|
inlinestatic |
Maximum values of a counter on all default communicator processes.
[in,out] | cpt | local counter in, global counter out (size: n) |
[in] | n | number of values |
size_t cs_parall_get_min_coll_buf_size | ( | void | ) |
Return minimum recommended scatter or gather buffer size.
This is used by some internal part to block or scatter/gather algorithms, so as to allow I/O buffer size tuning.
|
inlinestatic |
Maximum values of a given datatype on all default communicator processes.
[in] | n | number of values |
[in] | datatype | matching Code_Saturne datatype |
[in,out] | val | local maximum in, global maximum out (size: n) |
Maximum value of a real and the value of related array on all default communicator processes.
[in] | n | size of the related array |
[in,out] | max | local max in, global max out |
[in,out] | max_loc_vals | array values at location of local max in, and at location of global max out |
|
inlinestatic |
Minimum values of a given datatype on all default communicator processes.
[in] | n | number of values |
[in] | datatype | matching Code_Saturne datatype |
[in,out] | val | local minimum in, global minimum out (size: n) |
Given an (id, rank, value) tuple, return the local id and rank corresponding to the global minimum value.
[in,out] | elt_id | element id for which the value is the smallest (local in, global out) |
[in,out] | rank_id | rank id for which the value is the smallest (local in, global out) |
[in] | val | associated local minimum value |
Minimum value of a real and the value of related array on all default communicator processes.
[in] | n | size of the related array |
[in,out] | min | local min in, global min out |
[in,out] | min_loc_vals | array values at location of local min in, and at location of global min out |
void cs_parall_set_min_coll_buf_size | ( | size_t | buffer_size | ) |
Define minimum recommended scatter or gather buffer size.
This is used by some internal part to block or scatter/gather algorithms, so as to allow I/O buffer size tuning.
[in] | buffer_size | minimum recommended part to block or gather buffer size (in bytes) |
|
inlinestatic |
Sum values of a given datatype on all default communicator processes.
[in] | n | number of values |
[in] | datatype | matching Code_Saturne datatype |
[in,out] | val | local sum in, global sum out (size: n) |
void CS_PROCF | ( | parhis | , |
PARHIS | |||
) |
void cs_int_t* ndrang |