|
YAC 3.17.0
Yet Another Coupler
|
Defines the interface of the interpolation method "base class" in YAC. More...
#include "interpolation/interp_weights.h"#include "interpolation/interp_grid.h"#include "yac_types.h"

Go to the source code of this file.
Macros | |
| #define | YAC_MAX_ROUTINE_NAME_LENGTH (256) |
| Maximum length for routine names (used as keys for callback registration) | |
| #define | YAC_MAX_FILE_NAME_LENGTH (512) |
| Maximum length for file names (used in user file interpolation) | |
Functions | |
| 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. | |
| 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. | |
Defines the interface of the interpolation method "base class" in YAC.
This header provides the public API and type definitions for all interpolation methods in YAC, serving as the base interface for method implementations.
Constructors for concrete interpolation method implementations can be found in method-specific include files (e.g., yac_interp_method_avg_new in interp_method_avg.h).
Definition in file interp_method.h.
| #define YAC_MAX_FILE_NAME_LENGTH (512) |
Maximum length for file names (used in user file interpolation)
Definition at line 31 of file interp_method.h.
| #define YAC_MAX_ROUTINE_NAME_LENGTH (256) |
Maximum length for routine names (used as keys for callback registration)
Definition at line 28 of file interp_method.h.
Enumeration of supported interpolation methods.
Definition at line 36 of file interp_method.h.
| 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.


| 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.
| method | Array of pointers to interpolation method instances (stack), NULL-terminated |
Definition at line 54 of file interp_method.c.

| 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.
| method | Array of pointers to interpolation method instances (stack), NULL-terminated (last entry must be NULL) |
| interp_grid | Pointer to the interpolation grid |
Definition at line 15 of file interp_method.c.

