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

Go to the source code of this file.

Data Structures

struct  interp_method_fixed
 
struct  yac_interp_method_config_fixed
 Concrete implementation of yac_interp_method_config for the fixed value method. More...
 

Functions

static size_t do_search_fixed (struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights, int *interpolation_complete)
 
static void delete_fixed (struct interp_method *method)
 
struct interp_methodyac_interp_method_fixed_new (double value)
 
static void config_fixed_delete (struct yac_interp_method_config *config)
 
static struct yac_interp_method_configconfig_fixed_copy (const struct yac_interp_method_config *config)
 
static int config_fixed_compare (void const *a_, void const *b_)
 
static size_t config_fixed_get_pack_size (struct yac_interp_method_config const *config, MPI_Comm comm)
 
static void config_fixed_pack (struct yac_interp_method_config const *config, void *buffer, int buffer_size, int *position, MPI_Comm comm)
 
static enum yac_interpolation_list config_fixed_get_type ()
 
static struct interp_methodconfig_fixed_generate (struct yac_interp_method_config const *config)
 
static struct yac_paramconfig_fixed_get_param (struct yac_interp_method_config const *config)
 
struct yac_interp_method_configyac_interp_method_config_default_fixed_new (void)
 Creates a fixed-value interpolation method configuration with default parameters.
 
struct yac_interp_method_configyac_interp_method_config_fixed_unpack (void *buffer, int buffer_size, int *position, MPI_Comm comm)
 Unpacks a fixed interpolation method configuration from a buffer.
 

Variables

static struct interp_method_vtable interp_method_fixed_vtable
 
static struct yac_interp_method_config_vtable yac_interp_method_config_vtable_fixed
 

Function Documentation

◆ config_fixed_compare()

static int config_fixed_compare ( void const * a_,
void const * b_ )
static

Definition at line 106 of file interp_method_fixed.c.

◆ config_fixed_copy()

static struct yac_interp_method_config * config_fixed_copy ( const struct yac_interp_method_config * config)
static

Definition at line 96 of file interp_method_fixed.c.

◆ config_fixed_delete()

static void config_fixed_delete ( struct yac_interp_method_config * config)
static

Definition at line 91 of file interp_method_fixed.c.

◆ config_fixed_generate()

static struct interp_method * config_fixed_generate ( struct yac_interp_method_config const * config)
static

Definition at line 139 of file interp_method_fixed.c.

Here is the call graph for this function:

◆ config_fixed_get_pack_size()

static size_t config_fixed_get_pack_size ( struct yac_interp_method_config const * config,
MPI_Comm comm )
static

Definition at line 115 of file interp_method_fixed.c.

◆ config_fixed_get_param()

static struct yac_param * config_fixed_get_param ( struct yac_interp_method_config const * config)
static

Definition at line 147 of file interp_method_fixed.c.

Here is the call graph for this function:

◆ config_fixed_get_type()

static enum yac_interpolation_list config_fixed_get_type ( )
static

Definition at line 135 of file interp_method_fixed.c.

◆ config_fixed_pack()

static void config_fixed_pack ( struct yac_interp_method_config const * config,
void * buffer,
int buffer_size,
int * position,
MPI_Comm comm )
static

Definition at line 124 of file interp_method_fixed.c.

◆ delete_fixed()

static void delete_fixed ( struct interp_method * method)
static

Definition at line 68 of file interp_method_fixed.c.

◆ do_search_fixed()

static size_t do_search_fixed ( struct interp_method * method,
struct yac_interp_grid * interp_grid,
size_t * tgt_points,
size_t count,
struct yac_interp_weights * weights,
int * interpolation_complete )
static

Definition at line 37 of file interp_method_fixed.c.

Here is the call graph for this function:

◆ yac_interp_method_config_default_fixed_new()

struct yac_interp_method_config * yac_interp_method_config_default_fixed_new ( void )

Creates a fixed-value interpolation method configuration with default parameters.

Returns
Pointer to the created yac_interp_method_config structure

Definition at line 194 of file interp_method_fixed.c.

◆ yac_interp_method_config_fixed_unpack()

struct yac_interp_method_config * yac_interp_method_config_fixed_unpack ( void * buffer,
int buffer_size,
int * position,
MPI_Comm comm )

Unpacks a fixed interpolation method configuration from a buffer.

Parameters
[in]bufferBuffer containing the packed configuration data
[in]buffer_sizeSize of the buffer
[in,out]positionCurrent position in the buffer (will be updated)
[in]commMPI communicator for parallel unpacking
Returns
Pointer to the unpacked yac_interp_method_config structure

Definition at line 205 of file interp_method_fixed.c.

◆ yac_interp_method_fixed_new()

struct interp_method * yac_interp_method_fixed_new ( double value)

Definition at line 58 of file interp_method_fixed.c.

Here is the caller graph for this function:

Variable Documentation

◆ interp_method_fixed_vtable

struct interp_method_vtable interp_method_fixed_vtable
static
Initial value:
= {
.do_search = do_search_fixed,
.delete = delete_fixed}
static void delete_fixed(struct interp_method *method)
static size_t do_search_fixed(struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights, int *interpolation_complete)

Definition at line 27 of file interp_method_fixed.c.

◆ yac_interp_method_config_vtable_fixed

struct yac_interp_method_config_vtable yac_interp_method_config_vtable_fixed
static
Initial value:
= {
.get_pack_size = config_fixed_get_pack_size,
.get_type = config_fixed_get_type,
.generate = config_fixed_generate,
}
static enum yac_interpolation_list config_fixed_get_type()
static void config_fixed_pack(struct yac_interp_method_config const *config, void *buffer, int buffer_size, int *position, MPI_Comm comm)
static struct yac_interp_method_config * config_fixed_copy(const struct yac_interp_method_config *config)
static size_t config_fixed_get_pack_size(struct yac_interp_method_config const *config, MPI_Comm comm)
static struct yac_param * config_fixed_get_param(struct yac_interp_method_config const *config)
static int config_fixed_compare(void const *a_, void const *b_)
static struct interp_method * config_fixed_generate(struct yac_interp_method_config const *config)
static void config_fixed_delete(struct yac_interp_method_config *config)

Definition at line 183 of file interp_method_fixed.c.