YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
couple_config_component.h
Go to the documentation of this file.
1// Copyright (c) 2026 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef COUPLE_CONFIG_COMPONENT_H
6#define COUPLE_CONFIG_COMPONENT_H
7
8#include <stddef.h>
9
10#include "yac_mpi_common.h"
11
21
23
34 struct yac_couple_config_component ** components, size_t * num_components,
35 char const * name);
36
44 struct yac_couple_config_component ** components,
45 size_t * num_components);
46
54 struct yac_couple_config_component * component, char const * metadata);
55
66 struct yac_couple_config_component ** components, size_t * num_components,
67 struct yac_couple_config_couple * couples, size_t num_couples,
68 MPI_Comm comm);
69
78 struct yac_couple_config_component const * component);
79
91 struct yac_couple_config_component const * component,
92 size_t grid_idx, char const * field_name);
93
104 struct yac_couple_config_component const * component,
105 size_t grid_idx, char const * field_name);
106
116 struct yac_couple_config_component * component,
117 size_t grid_idx, char const * field_name, double value);
118
129 struct yac_couple_config_component const * component,
130 size_t grid_idx, char const * field_name);
131
143 struct yac_couple_config_component const * component,
144 size_t grid_idx, char const * field_name);
145
155 struct yac_couple_config_component * component,
156 size_t grid_idx, char const * field_name, char const * metadata);
157
171 struct yac_couple_config_component * component,
172 char const * field_name, size_t grid_idx,
173 char const * timestep, size_t collection_size);
174
184 struct yac_couple_config_component const * component,
185 size_t field_idx);
186
196 struct yac_couple_config_component const * component,
197 size_t field_idx);
198
206 struct yac_couple_config_component * component,
207 size_t const * old_to_new_idx);
208
220 struct yac_couple_config_component const * component,
221 size_t grid_idx, char const * field_name);
222
233 struct yac_couple_config_component const * component,
234 size_t field_idx);
235
247 struct yac_couple_config_component const * component,
248 size_t field_idx);
249
259 struct yac_couple_config_component const * component,
260 size_t field_idx);
261
270double
272 struct yac_couple_config_component const * component,
273 size_t field_idx);
274
275#endif // COUPLE_CONFIG_COMPONENT_H
unsigned num_components
unsigned grid_idx[3]
char const * yac_couple_config_component_get_field_metadata(struct yac_couple_config_component const *component, size_t grid_idx, char const *field_name)
int yac_couple_config_component_field_is_valid(struct yac_couple_config_component const *component, size_t field_idx)
size_t yac_couple_config_component_update_or_append_field(struct yac_couple_config_component *component, char const *field_name, size_t grid_idx, char const *timestep, size_t collection_size)
char const * yac_couple_config_component_get_name(struct yac_couple_config_component const *component)
size_t yac_couple_config_component_append(struct yac_couple_config_component **components, size_t *num_components, char const *name)
char const * yac_couple_config_component_get_field_name(struct yac_couple_config_component const *component, size_t field_idx)
char const * yac_couple_config_component_get_field_timestep(struct yac_couple_config_component const *component, size_t grid_idx, char const *field_name)
void yac_couple_config_component_update_all_grid_idx(struct yac_couple_config_component *component, size_t const *old_to_new_idx)
double yac_couple_config_component_get_field_frac_mask_fallback_value(struct yac_couple_config_component const *component, size_t grid_idx, char const *field_name)
char const * yac_couple_config_component_get_field_timestep_by_idx(struct yac_couple_config_component const *component, size_t field_idx)
void yac_couple_config_components_merge(struct yac_couple_config_component **components, size_t *num_components, struct yac_couple_config_couple *couples, size_t num_couples, MPI_Comm comm)
struct yac_couple_config_field * yac_couple_config_component_find_field(struct yac_couple_config_component const *component, size_t grid_idx, char const *field_name)
void yac_couple_config_component_set_field_metadata(struct yac_couple_config_component *component, size_t grid_idx, char const *field_name, char const *metadata)
double yac_couple_config_component_get_field_frac_mask_fallback_value_by_idx(struct yac_couple_config_component const *component, size_t field_idx)
void yac_couple_config_set_component_metadata_value(struct yac_couple_config_component *component, char const *metadata)
size_t yac_couple_config_component_get_field_collection_size(struct yac_couple_config_component const *component, size_t grid_idx, char const *field_name)
void yac_couple_config_components_free(struct yac_couple_config_component **components, size_t *num_components)
size_t yac_couple_config_component_get_field_collection_size_by_idx(struct yac_couple_config_component const *component, size_t field_idx)
size_t yac_couple_config_component_get_field_grid_idx(struct yac_couple_config_component const *component, size_t field_idx)
void yac_couple_config_component_set_field_frac_mask_fallback_value(struct yac_couple_config_component *component, size_t grid_idx, char const *field_name, double value)
struct @23::@24 value
struct yac_couple_config_field * fields
int collection_size
char const * name
Definition toy_scrip.c:114