|
YAC 3.21.0
Yet Another Coupler
|


Go to the source code of this file.
Data Structures | |
| struct | yac_couple_config_grid |
Functions | |
| size_t | yac_couple_config_grid_append (struct yac_couple_config_grid **grids, size_t *num_grids, char const *name) |
| void | yac_couple_config_set_grid_output_filename_value (struct yac_couple_config_grid *grid, char const *output_filename) |
| void | yac_couple_config_set_grid_metadata_value (struct yac_couple_config_grid *grid, char const *metadata) |
| void | yac_couple_config_grid_free (struct yac_couple_config_grid *grid) |
| void | yac_couple_config_grids_free (struct yac_couple_config_grid **grids, size_t *num_grids) |
| void | yac_couple_config_grids_merge (struct yac_couple_config_grid **grids, size_t *num_grids, struct yac_couple_config_component *components, size_t num_components, MPI_Comm comm) |
| size_t yac_couple_config_grid_append | ( | struct yac_couple_config_grid ** | grids, |
| size_t * | num_grids, | ||
| char const * | name ) |
Append a grid by name if missing and return its index.
If a grid with the same name already exists, its existing index is returned and no new grid is allocated.
| [in,out] | grids | Grid array pointer. |
| [in,out] | num_grids | Number of grids. |
| [in] | name | Grid name. |
Definition at line 32 of file couple_config_grid.c.


| void yac_couple_config_grid_free | ( | struct yac_couple_config_grid * | grid | ) |
Free a grid and its dynamic data.
| [in,out] | grid | Grid. |
Definition at line 148 of file couple_config_grid.c.

| void yac_couple_config_grids_free | ( | struct yac_couple_config_grid ** | grids, |
| size_t * | num_grids ) |
Free all grids and their dynamic data.
| [in,out] | grids | Grid array pointer. |
| [in,out] | num_grids | Number of grids. |
Definition at line 190 of file couple_config_grid.c.


| void yac_couple_config_grids_merge | ( | struct yac_couple_config_grid ** | grids, |
| size_t * | num_grids, | ||
| struct yac_couple_config_component * | components, | ||
| size_t | num_components, | ||
| MPI_Comm | comm ) |
Synchronize and merge all grids across ranks and updates grid indices in components accordingly.
| [in,out] | grids | Grid array pointer. |
| [in,out] | num_grids | Number of grids. |
| [in,out] | components | Component array. |
| [in] | num_components | Number of components. |
| [in] | comm | MPI communicator. |
Definition at line 166 of file couple_config_grid.c.


| void yac_couple_config_set_grid_metadata_value | ( | struct yac_couple_config_grid * | grid, |
| char const * | metadata ) |
Set the metadata of a grid.
Metadata must not be NULL. If metadata is already set, it must match the provided value.
| [in,out] | grid | Grid. |
| [in] | metadata | Metadata. |
Definition at line 71 of file couple_config_grid.c.

| void yac_couple_config_set_grid_output_filename_value | ( | struct yac_couple_config_grid * | grid, |
| char const * | output_filename ) |
Set the output filename of a grid.
The filename must not be NULL. If a filename is already set, it must match the provided value.
| [in,out] | grid | Grid. |
| [in] | output_filename | Output filename. |
Definition at line 51 of file couple_config_grid.c.
