#include "config.h"
#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <mpi.h>
#include "utils_mci.h"
#include "utils_common.h"
#include "yac_mpi_common.h"
#include "component.h"
#include "yac.h"
Go to the source code of this file.
|
| static int | compare_component_data (void const *a, void const *b) |
| |
| struct yac_component_config * | yac_component_config_new (struct yac_couple_config *couple_config, char const **names, size_t num_names, MPI_Comm comm_) |
| |
| static int | compare_int (const void *a, const void *b) |
| |
| static size_t | get_comp_idx (char const *caller, struct yac_component_config *comp_config, char const *comp_name) |
| |
| MPI_Comm | yac_component_config_get_comps_comm (struct yac_component_config *comp_config, const char **names, size_t num_names) |
| |
| int | yac_component_config_contains_component (struct yac_component_config *comp_config, char const *comp_name) |
| |
| static MPI_Group | get_local_comp_group (char const *caller, struct yac_component_config *comp_config, char const *comp_name) |
| |
| int | yac_component_config_comp_size (struct yac_component_config *comp_config, char const *comp_name) |
| |
| int | yac_component_config_comp_rank (struct yac_component_config *comp_config, char const *comp_name) |
| |
| void | yac_component_config_delete (struct yac_component_config *comp_config) |
| |
◆ compare_component_data()
| static int compare_component_data |
( |
void const * | a, |
|
|
void const * | b ) |
|
static |
◆ compare_int()
| static int compare_int |
( |
const void * | a, |
|
|
const void * | b ) |
|
inlinestatic |
◆ get_comp_idx()
| static size_t get_comp_idx |
( |
char const * | caller, |
|
|
struct yac_component_config * | comp_config, |
|
|
char const * | comp_name ) |
|
static |
◆ get_local_comp_group()
| static MPI_Group get_local_comp_group |
( |
char const * | caller, |
|
|
struct yac_component_config * | comp_config, |
|
|
char const * | comp_name ) |
|
static |
◆ yac_component_config_comp_rank()
| int yac_component_config_comp_rank |
( |
struct yac_component_config * | comp_config, |
|
|
char const * | comp_name ) |
◆ yac_component_config_comp_size()
| int yac_component_config_comp_size |
( |
struct yac_component_config * | comp_config, |
|
|
char const * | comp_name ) |
◆ yac_component_config_contains_component()
| int yac_component_config_contains_component |
( |
struct yac_component_config * | comp_config, |
|
|
char const * | comp_name ) |
Checks whether a component is locally available
- Parameters
-
| [in] | comp_config | component configuration |
| [in] | comp_name | component name |
- Returns
- "1" if comp_name was provided to yac_component_config_new
"0" otherwise
Definition at line 240 of file component.c.
◆ yac_component_config_delete()
◆ yac_component_config_get_comps_comm()
| MPI_Comm yac_component_config_get_comps_comm |
( |
struct yac_component_config * | comp_config, |
|
|
const char ** | names, |
|
|
size_t | num_names ) |
creates a communicator that contains the processes of all listed components
- Parameters
-
| [in] | comp_config | component configuration |
| [in] | names | list of component names |
| [in] | num_names | number of component names |
- Returns
- components communicator
Definition at line 145 of file component.c.
◆ yac_component_config_new()