YetAnotherCoupler 3.5.2
Loading...
Searching...
No Matches
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)
 

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 1195 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 601 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 1228 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 1210 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 636 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 618 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 627 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 592 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 610 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 464 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 1530 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 1251 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 492 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 475 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 645 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 468 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 537 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 517 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 693 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 508 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 77 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 815 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 579 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 559 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 749 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 550 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)

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.