YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
interp_method_callback.h File Reference
#include "interp_method.h"
Include dependency graph for interp_method_callback.h:
This graph shows which files directly or indirectly include this file:

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_methodyac_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)
 

Macro Definition Documentation

◆ TYPEDEF_YAC_FUNC_COMPUTE_WEIGHTS

#define TYPEDEF_YAC_FUNC_COMPUTE_WEIGHTS

Definition at line 13 of file interp_method_callback.h.

◆ YAC_INTERP_CALLBACK_COMPUTE_WEIGHTS_KEY_DEFAULT

#define YAC_INTERP_CALLBACK_COMPUTE_WEIGHTS_KEY_DEFAULT   (NULL)

Definition at line 22 of file interp_method_callback.h.

Typedef Documentation

◆ yac_func_compute_weights

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)

Function Documentation

◆ yac_interp_method_callback_add_compute_weights_callback()

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

Parameters
[in]compute_weights_callbackpointer to a weight computation routine
[in]user_datadata pointer that will be passed to compute_weights_callback
[in]keykey that can afterwards be used to retrieve the provided pointers

Definition at line 459 of file interp_method_callback.c.

Here is the caller graph for this function:

◆ yac_interp_method_callback_get_compute_weights_callback()

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

Parameters
[in]keykey that identifies the pointers that are to be retrieved
[out]compute_weights_callbackpointer to a weight computation routine
[out]user_datadata pointer that was provided together with the function pointer

Definition at line 483 of file interp_method_callback.c.

Here is the caller graph for this function:

◆ yac_interp_method_callback_new()

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

Parameters
[in]compute_weights_callbackpointer to routine that is used by YAC to compute the weights
[in]user_datadata pointer associated to the function pointer
Returns
returns a pointer to an interpolation method

Definition at line 434 of file interp_method_callback.c.

Here is the caller graph for this function: