YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
interp_method_config.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 INTERP_METHOD_CONFIG_H
6#define INTERP_METHOD_CONFIG_H
7
8#include "interp_method.h"
9
10// YAC PUBLIC HEADER START
11
123struct yac_param;
124
130
137 const struct yac_interp_method_config *config);
138
148 struct yac_interp_method_config const *a,
149 struct yac_interp_method_config const *b);
150
158 struct yac_interp_method_config const *config, MPI_Comm comm);
159
169 struct yac_interp_method_config const *config,
170 void *buffer, int buffer_size, int *position, MPI_Comm comm);
171
181 void *buffer, int buffer_size, int *position, MPI_Comm comm);
182
189 struct yac_interp_method_config const *config);
190
203 struct yac_interp_method_config const *config);
204
211 char const *method_name);
212
219 struct yac_interp_method_config const *config);
220
221//------------------------------------------------------------------------------
222// User-oriented parameter access convenience functions
223//
224// These functions navigate the parameter tree by a dot-separated path such as
225// "n" or "search_distance.fixed" and set or get the scalar value at that leaf.
226// On any error (NULL config, unknown path component, wrong type) the program
227// aborts via YAC_ASSERT rather than returning an error code.
228//------------------------------------------------------------------------------
229
241 const char *path,
242 const char *value);
243
254 const char *path,
255 int value);
256
267 const char *path,
268 double value);
269
278 struct yac_interp_method_config const *config,
279 const char *path);
280
289 struct yac_interp_method_config const *config,
290 const char *path);
291
301 struct yac_interp_method_config const *config,
302 const char *path);
303
313 struct yac_interp_method_config const *config,
314 const char *path);
315
328 const char *path);
329
330// YAC PUBLIC HEADER STOP
331
332#endif // INTERP_METHOD_CONFIG_H
Defines the interface of the interpolation method "base class" in YAC.
yac_interpolation_list
struct @23::@24 value
size_t yac_interp_method_config_get_list_size(struct yac_interp_method_config const *config, const char *path)
struct interp_method * yac_interp_method_config_generate(struct yac_interp_method_config const *config)
struct yac_param * yac_interp_method_config_get_param(struct yac_interp_method_config const *config)
void yac_interp_method_config_pack(struct yac_interp_method_config const *config, void *buffer, int buffer_size, int *position, MPI_Comm comm)
size_t yac_interp_method_config_get_pack_size(struct yac_interp_method_config const *config, MPI_Comm comm)
enum yac_interpolation_list yac_interp_method_config_get_type(struct yac_interp_method_config const *config)
void yac_interp_method_config_set_param_str(struct yac_interp_method_config *config, const char *path, const char *value)
double yac_interp_method_config_get_param_dble(struct yac_interp_method_config const *config, const char *path)
struct yac_interp_method_config * yac_interp_method_config_copy(const struct yac_interp_method_config *config)
size_t yac_interp_method_config_append_list_element(struct yac_interp_method_config *config, const char *path)
int yac_interp_method_config_get_param_int(struct yac_interp_method_config const *config, const char *path)
void yac_interp_method_config_set_param_dble(struct yac_interp_method_config *config, const char *path, double value)
struct yac_interp_method_config * yac_interp_method_config_unpack(void *buffer, int buffer_size, int *position, MPI_Comm comm)
struct yac_interp_method_config * yac_interp_method_config_default_from_name_new(char const *method_name)
void yac_interp_method_config_delete(struct yac_interp_method_config *config)
void yac_interp_method_config_set_param_int(struct yac_interp_method_config *config, const char *path, int value)
int yac_interp_method_config_compare(struct yac_interp_method_config const *a, struct yac_interp_method_config const *b)
char * yac_interp_method_config_get_param_str(struct yac_interp_method_config const *config, const char *path)
static struct yac_interp_method_config * config
double * buffer