YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
interp_method_file.c File Reference
#include <string.h>
#include "interp_method_internal.h"
#include "interp_method_file.h"
#include "dist_grid.h"
#include "yac_mpi_internal.h"
#include "io_utils.h"
Include dependency graph for interp_method_file.c:

Go to the source code of this file.

Data Structures

struct  interp_method_file
 
struct  link_data
 
struct  fixed_data
 
struct  temp_fixed_data
 
struct  temp_result
 

Functions

static size_t do_search_file (struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)
 
static void delete_file (struct interp_method *method)
 
static void read_weight_file (char const *weight_file_name, MPI_Comm comm, char const *src_grid_name, char const *tgt_grid_name, enum yac_location *src_locations, enum yac_location tgt_location, size_t num_src_fields, struct link_data **links, size_t *num_links, struct fixed_data **fixed, size_t *num_fixed)
 
static int compute_bucket (yac_int value, int comm_size)
 
static int get_tgt_pack_size (MPI_Comm comm)
 
static int get_link_pack_size (MPI_Comm comm)
 
static int get_fixed_pack_size (MPI_Comm comm)
 
static void pack_tgt (yac_int global_tgt_id, void *buffer, int buffer_size, MPI_Comm comm)
 
static void pack_link (struct link_data *link, void *buffer, int buffer_size, MPI_Comm comm)
 
static void pack_fixed (double fixed_value, yac_int global_tgt_id, void *buffer, int buffer_size, MPI_Comm comm)
 
static void unpack_tgt (void *buffer, int buffer_size, yac_int *global_tgt_id, MPI_Comm comm)
 
static void unpack_link (void *buffer, int buffer_size, struct link_data *link, MPI_Comm comm)
 
static void unpack_fixed (void *buffer, int buffer_size, struct temp_fixed_data *fixed, MPI_Comm comm)
 
static int compare_temp_result_tgt (void const *a, void const *b)
 
static int compare_link_data_tgt (void const *a, void const *b)
 
static int compare_temp_result_type (void const *a, void const *b)
 
static int compare_temp_result_fixed (void const *a, void const *b)
 
static int compare_temp_result_reorder_idx (void const *a, void const *b)
 
static int compare_temp_fixed_data_tgt (void const *a, void const *b)
 
static int get_temp_result_pack_size (struct temp_result *result, MPI_Comm comm)
 
static void pack_temp_result (struct temp_result *result, void *buffer, int buffer_size, MPI_Comm comm)
 
static void unpack_temp_result (void *buffer, int buffer_size, struct temp_result *result, MPI_Comm comm)
 
static void redist_weight_file_data (struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t tgt_count, size_t *num_interpolated_points, struct link_data **links, size_t *num_links, struct fixed_data **fixed, size_t *num_fixed)
 
static int compare_link_data_field_idx_src (void const *a, void const *b)
 
static int compare_link_data_tgt_src_mask (void const *a, void const *b)
 
static int compare_link_data_tgt_src_field_src_id (void const *a, void const *b)
 
struct interp_methodyac_interp_method_file_new (char const *weight_file_name, char const *src_grid_name, char const *tgt_grid_name)
 

Variables

static struct interp_method_vtable interp_method_file_vtable
 

Function Documentation

◆ compare_link_data_field_idx_src()

static int compare_link_data_field_idx_src ( void const *  a,
void const *  b 
)
static

Definition at line 1194 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_link_data_tgt()

static int compare_link_data_tgt ( void const *  a,
void const *  b 
)
static

Definition at line 600 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_link_data_tgt_src_field_src_id()

static int compare_link_data_tgt_src_field_src_id ( void const *  a,
void const *  b 
)
static

Definition at line 1227 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_link_data_tgt_src_mask()

static int compare_link_data_tgt_src_mask ( void const *  a,
void const *  b 
)
static

Definition at line 1209 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_temp_fixed_data_tgt()

static int compare_temp_fixed_data_tgt ( void const *  a,
void const *  b 
)
static

Definition at line 635 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_temp_result_fixed()

static int compare_temp_result_fixed ( void const *  a,
void const *  b 
)
static

Definition at line 617 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_temp_result_reorder_idx()

static int compare_temp_result_reorder_idx ( void const *  a,
void const *  b 
)
static

Definition at line 626 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_temp_result_tgt()

static int compare_temp_result_tgt ( void const *  a,
void const *  b 
)
static

Definition at line 591 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compare_temp_result_type()

static int compare_temp_result_type ( void const *  a,
void const *  b 
)
static

Definition at line 609 of file interp_method_file.c.

Here is the caller graph for this function:

◆ compute_bucket()

static int compute_bucket ( yac_int  value,
int  comm_size 
)
inlinestatic

Definition at line 463 of file interp_method_file.c.

Here is the caller graph for this function:

◆ delete_file()

static void delete_file ( struct interp_method method)
static

Definition at line 1535 of file interp_method_file.c.

◆ do_search_file()

static size_t do_search_file ( struct interp_method method,
struct yac_interp_grid interp_grid,
size_t *  tgt_points,
size_t  count,
struct yac_interp_weights weights 
)
static

Definition at line 1250 of file interp_method_file.c.

Here is the call graph for this function:

◆ get_fixed_pack_size()

static int get_fixed_pack_size ( MPI_Comm  comm)
static

Definition at line 491 of file interp_method_file.c.

Here is the caller graph for this function:

◆ get_link_pack_size()

static int get_link_pack_size ( MPI_Comm  comm)
static

Definition at line 474 of file interp_method_file.c.

Here is the caller graph for this function:

◆ get_temp_result_pack_size()

static int get_temp_result_pack_size ( struct temp_result result,
MPI_Comm  comm 
)
static

Definition at line 644 of file interp_method_file.c.

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

◆ get_tgt_pack_size()

static int get_tgt_pack_size ( MPI_Comm  comm)
static

Definition at line 467 of file interp_method_file.c.

Here is the caller graph for this function:

◆ pack_fixed()

static void pack_fixed ( double  fixed_value,
yac_int  global_tgt_id,
void *  buffer,
int  buffer_size,
MPI_Comm  comm 
)
static

Definition at line 536 of file interp_method_file.c.

Here is the caller graph for this function:

◆ pack_link()

static void pack_link ( struct link_data link,
void *  buffer,
int  buffer_size,
MPI_Comm  comm 
)
static

Definition at line 516 of file interp_method_file.c.

Here is the caller graph for this function:

◆ pack_temp_result()

static void pack_temp_result ( struct temp_result result,
void *  buffer,
int  buffer_size,
MPI_Comm  comm 
)
static

Definition at line 692 of file interp_method_file.c.

Here is the caller graph for this function:

◆ pack_tgt()

static void pack_tgt ( yac_int  global_tgt_id,
void *  buffer,
int  buffer_size,
MPI_Comm  comm 
)
static

Definition at line 507 of file interp_method_file.c.

Here is the caller graph for this function:

◆ read_weight_file()

static void read_weight_file ( char const *  weight_file_name,
MPI_Comm  comm,
char const *  src_grid_name,
char const *  tgt_grid_name,
enum yac_location src_locations,
enum yac_location  tgt_location,
size_t  num_src_fields,
struct link_data **  links,
size_t *  num_links,
struct fixed_data **  fixed,
size_t *  num_fixed 
)
static

Definition at line 79 of file interp_method_file.c.

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

◆ redist_weight_file_data()

static void redist_weight_file_data ( struct yac_interp_grid interp_grid,
size_t *  tgt_points,
size_t  tgt_count,
size_t *  num_interpolated_points,
struct link_data **  links,
size_t *  num_links,
struct fixed_data **  fixed,
size_t *  num_fixed 
)
static

Definition at line 814 of file interp_method_file.c.

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

◆ unpack_fixed()

static void unpack_fixed ( void *  buffer,
int  buffer_size,
struct temp_fixed_data fixed,
MPI_Comm  comm 
)
static

Definition at line 578 of file interp_method_file.c.

Here is the caller graph for this function:

◆ unpack_link()

static void unpack_link ( void *  buffer,
int  buffer_size,
struct link_data link,
MPI_Comm  comm 
)
static

Definition at line 558 of file interp_method_file.c.

Here is the caller graph for this function:

◆ unpack_temp_result()

static void unpack_temp_result ( void *  buffer,
int  buffer_size,
struct temp_result result,
MPI_Comm  comm 
)
static

Definition at line 748 of file interp_method_file.c.

Here is the caller graph for this function:

◆ unpack_tgt()

static void unpack_tgt ( void *  buffer,
int  buffer_size,
yac_int global_tgt_id,
MPI_Comm  comm 
)
static

Definition at line 549 of file interp_method_file.c.

Here is the caller graph for this function:

◆ yac_interp_method_file_new()

struct interp_method * yac_interp_method_file_new ( char const *  weight_file_name,
char const *  src_grid_name,
char const *  tgt_grid_name 
)

Variable Documentation

◆ interp_method_file_vtable

struct interp_method_vtable interp_method_file_vtable
static
Initial value:
= {
.do_search = do_search_file,
.delete = delete_file}
static size_t do_search_file(struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)
static void delete_file(struct interp_method *method)

Definition at line 20 of file interp_method_file.c.