YAC 3.18.0
Yet Another Coupler
Loading...
Searching...
No Matches
interp_method.c File Reference
Include dependency graph for interp_method.c:

Go to the source code of this file.

Functions

struct yac_interp_weightsyac_interp_method_do_search (struct interp_method **method, struct yac_interp_grid *interp_grid)
 Perform weight computation using given interpolation stack and grid.
 
void yac_interp_method_delete (struct interp_method **method)
 Delete an interpolation stack and free its resources (but not the pointer array).
 
void yac_interp_method_cleanup ()
 Free static internal resources of all interpolation methods.
 

Function Documentation

◆ yac_interp_method_cleanup()

void yac_interp_method_cleanup ( )

Free static internal resources of all interpolation methods.

Cleans up static internal resources such as lookup tables for callback functions used by the check and user callback interpolation methods. This function should be called to release memory used by these resources after all interpolation operations are complete.

Definition at line 63 of file interp_method.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_interp_method_delete()

void yac_interp_method_delete ( struct interp_method ** method)

Delete an interpolation stack and free its resources (but not the pointer array).

This function deletes all interpolation method instances in the stack pointed to by method. The pointer array itself (the stack) is not freed; only the method instances are deleted. The stack must be NULL-terminated.

Parameters
methodArray of pointers to interpolation method instances (stack), NULL-terminated

Definition at line 54 of file interp_method.c.

Here is the caller graph for this function:

◆ yac_interp_method_do_search()

struct yac_interp_weights * yac_interp_method_do_search ( struct interp_method ** method,
struct yac_interp_grid * interp_grid )

Perform weight computation using given interpolation stack and grid.

This function computes the interpolation weights for the specified interpolation stack and source/target grid configuration (interp_grid). The input is an interpolation stack: An array of pointers to interpolation methods, where the last entry must be NULL to mark the end of the list.

Parameters
methodArray of pointers to interpolation method instances (stack), NULL-terminated (last entry must be NULL)
interp_gridPointer to the interpolation grid
Returns
Pointer to the resulting interpolation weights structure

Definition at line 15 of file interp_method.c.

Here is the call graph for this function:
Here is the caller graph for this function: