#include <stddef.h>
#include "yac_mpi_common.h"
Go to the source code of this file.
|
| void | yac_couple_config_field_free (struct yac_couple_config_field *field) |
| |
| void | yac_couple_config_fields_merge (size_t *num_fields, struct yac_couple_config_field **fields, MPI_Comm comm, size_t **old_to_new_idx) |
| |
| struct yac_couple_config_field * | yac_couple_config_field_find (size_t num_fields, struct yac_couple_config_field *fields, struct yac_couple_config_field const *field) |
| |
| void | yac_couple_config_field_init (struct yac_couple_config_field *field, char const *name, size_t grid_idx, char const *timestep, size_t collection_size) |
| |
| void | yac_couple_config_field_set_timestep (struct yac_couple_config_field *field, char const *timestep) |
| |
| char const * | yac_couple_config_field_get_timestep (struct yac_couple_config_field const *field) |
| |
| void | yac_couple_config_field_set_collection_size (struct yac_couple_config_field *field, size_t collection_size) |
| |
| size_t | yac_couple_config_field_get_collection_size (struct yac_couple_config_field const *field) |
| |
| void | yac_couple_config_set_field_metadata_value (struct yac_couple_config_field *field, char const *metadata) |
| |
| char const * | yac_couple_config_field_get_metadata (struct yac_couple_config_field const *field) |
| |
| void | yac_couple_config_field_set_frac_mask_fallback_value (struct yac_couple_config_field *field, double value) |
| |
| double | yac_couple_config_field_get_frac_mask_fallback_value (struct yac_couple_config_field const *field) |
| |
| int | yac_couple_config_field_has_valid_definition (struct yac_couple_config_field const *field) |
| |
◆ yac_couple_config_field_find()
Search for a matching field in an array.
- Parameters
-
| [in] | num_fields | Number of fields. |
| [in] | fields | Array of fields to search in. |
| [in] | field | Field to search for. |
- Return values
-
| field | if a match is found |
| NULL | if not found. |
Definition at line 373 of file couple_config_field.c.
◆ yac_couple_config_field_free()
◆ yac_couple_config_field_get_collection_size()
Return the collection size of a field.
- Parameters
-
- Returns
- Collection size.
Definition at line 126 of file couple_config_field.c.
◆ yac_couple_config_field_get_frac_mask_fallback_value()
Return the fractional mask fallback value of a field.
- Parameters
-
- Returns
- Fractional mask fallback value.
Definition at line 96 of file couple_config_field.c.
◆ yac_couple_config_field_get_metadata()
Return the metadata of a field.
- Parameters
-
- Return values
-
| metadata | of the field |
| NULL | if metadata is not set. |
Definition at line 90 of file couple_config_field.c.
◆ yac_couple_config_field_get_timestep()
Return the timestep of a field.
- Parameters
-
- Return values
-
| timestep | of the field |
| NULL | if timestep is not set. |
Definition at line 50 of file couple_config_field.c.
◆ yac_couple_config_field_has_valid_definition()
Check if a field has a valid definition.
A field has a valid definition if it has a defined timestep and collection size.
- Parameters
-
- Return values
-
| Nonzero | if the field has a valid definition |
| Zero | otherwise |
Definition at line 388 of file couple_config_field.c.
◆ yac_couple_config_field_init()
| void yac_couple_config_field_init |
( |
struct yac_couple_config_field * | field, |
|
|
char const * | name, |
|
|
size_t | grid_idx, |
|
|
char const * | timestep, |
|
|
size_t | collection_size ) |
Initialize a yac_couple_config_field.
- Parameters
-
| [in,out] | field | Field. |
| [in] | name | Field name. |
| [in] | grid_idx | Grid index. |
| [in] | timestep | Timestep string. |
| [in] | collection_size | Collection size. |
Definition at line 18 of file couple_config_field.c.
◆ yac_couple_config_field_set_collection_size()
| void yac_couple_config_field_set_collection_size |
( |
struct yac_couple_config_field * | field, |
|
|
size_t | collection_size ) |
Set or validate the collection size of a field.
- Parameters
-
| [in,out] | field | Field. |
| [in] | collection_size | Collection size. |
Definition at line 55 of file couple_config_field.c.
◆ yac_couple_config_field_set_frac_mask_fallback_value()
Set the fractional mask fallback value of a field.
- Parameters
-
| [in,out] | field | Field. |
| [in] | value | Fractional mask fallback value to set. |
Definition at line 110 of file couple_config_field.c.
◆ yac_couple_config_field_set_timestep()
Set or validate the timestep of a field.
- Parameters
-
| [in,out] | field | Field. |
| [in] | timestep | Timestep string. |
Definition at line 34 of file couple_config_field.c.
◆ yac_couple_config_fields_merge()
| void yac_couple_config_fields_merge |
( |
size_t * | num_fields, |
|
|
struct yac_couple_config_field ** | fields, |
|
|
MPI_Comm | comm, |
|
|
size_t ** | old_to_new_idx ) |
Synchronize and merge fields across ranks.
- Parameters
-
| [in,out] | num_fields | Number of fields. |
| [in,out] | fields | Array of fields. |
| [in] | comm | MPI communicator. |
| [out] | old_to_new_idx | Mapping from old to new field indices. |
Definition at line 362 of file couple_config_field.c.
◆ yac_couple_config_set_field_metadata_value()
Set or validate the metadata of a field.
- Parameters
-
| [in,out] | field | Field. |
| [in] | metadata | Metadata string (NULL is not allowed). |
Definition at line 72 of file couple_config_field.c.