YetAnotherCoupler 3.4.0
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 1192 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 598 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 1225 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 1207 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 633 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 615 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 624 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 589 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 607 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 461 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 1527 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 1248 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 489 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 472 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 642 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 465 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 534 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 514 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 690 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 505 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 812 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 576 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 556 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 746 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 547 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.