![]() |
YAC 3.7.0
Yet Another Coupler
|
#include "interp_method.h"
Go to the source code of this file.
Macros | |
#define | TYPEDEF_YAC_FUNC_COMPUTE_WEIGHTS |
#define | YAC_INTERP_CALLBACK_COMPUTE_WEIGHTS_KEY_DEFAULT (NULL) |
Typedefs | |
typedef void(* | yac_func_compute_weights) (double const tgt_coords[3], int src_cell_id, size_t src_cell_idx, int const **global_results_points, double **result_weights, size_t *result_count, void *user_data) |
Functions | |
struct interp_method * | yac_interp_method_callback_new (yac_func_compute_weights compute_weights_callback, void *user_data) |
void | yac_interp_method_callback_add_compute_weights_callback (yac_func_compute_weights compute_weights_callback, void *user_data, char const *key) |
void | yac_interp_method_callback_get_compute_weights_callback (char const *key, yac_func_compute_weights *compute_weights_callback, void **user_data) |
void | yac_interp_method_callback_buf_free () |
#define TYPEDEF_YAC_FUNC_COMPUTE_WEIGHTS |
Definition at line 13 of file interp_method_callback.h.
#define YAC_INTERP_CALLBACK_COMPUTE_WEIGHTS_KEY_DEFAULT (NULL) |
Definition at line 22 of file interp_method_callback.h.
typedef void(* yac_func_compute_weights) (double const tgt_coords[3], int src_cell_id, size_t src_cell_idx, int const **global_results_points, double **result_weights, size_t *result_count, void *user_data) |
Definition at line 16 of file interp_method_callback.h.
void yac_interp_method_callback_add_compute_weights_callback | ( | yac_func_compute_weights | compute_weights_callback, |
void * | user_data, | ||
char const * | key ) |
sets a weight computation routine that can afterwards be retrieved by yac_interp_method_callback_get_compute_weights_callback
[in] | compute_weights_callback | pointer to a weight computation routine |
[in] | user_data | data pointer that will be passed to compute_weights_callback |
[in] | key | key that can afterwards be used to retrieve the provided pointers |
Definition at line 466 of file interp_method_callback.c.
void yac_interp_method_callback_buf_free | ( | ) |
free internal array with provided pointers to callback routines
Definition at line 504 of file interp_method_callback.c.
void yac_interp_method_callback_get_compute_weights_callback | ( | char const * | key, |
yac_func_compute_weights * | compute_weights_callback, | ||
void ** | user_data ) |
retrieves a compute_weights_callback pointer that was set by yac_interp_method_callback_add_compute_weights_callback
[in] | key | key that identifies the pointers that are to be retrieved |
[out] | compute_weights_callback | pointer to a weight computation routine |
[out] | user_data | data pointer that was provided together with the function pointer |
Definition at line 514 of file interp_method_callback.c.
struct interp_method * yac_interp_method_callback_new | ( | yac_func_compute_weights | compute_weights_callback, |
void * | user_data ) |
constructor for a interpolation method of type interp_method_callback
[in] | compute_weights_callback | pointer to routine that is used by YAC to compute the weights |
[in] | user_data | data pointer associated to the function pointer |
Definition at line 441 of file interp_method_callback.c.