YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_dummy_coupling_raw_c.c File Reference
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "tests.h"
#include "test_common.h"
#include "yac.h"
Include dependency graph for test_dummy_coupling_raw_c.c:

Go to the source code of this file.

Data Structures

struct  interp_weights_data
 

Macros

#define RAD   (0.01745329251994329576923690768489)
 
#define FRAC_MASK_TOL   (1e-12)
 
#define RESULT_TOL   (1e-2)
 

Functions

static void compute_tgt_field (double ***src_field_buffer, double ***src_frac_mask_buffer, double **tgt_field, size_t collection_size, struct interp_weights_data interp_weights_data, size_t num_tgt_points, int use_csr_format)
 
static void interp_weights_data_free (struct interp_weights_data *interp_weights_data)
 
static void multi_compute_weights (double const tgt_coords[3], int src_cell_id, size_t src_cell_idx, int const **global_results_points, double **result_weights, size_t *result_count, void *user_data)
 
static struct interp_weights_data get_interp_weights_data (int field_id, int use_csr_format)
 
static void check_results (int is_tgt, int info, size_t collection_size, size_t num_tgt_points, double ***src_field_buffer, double ***src_frac_mask_buffer, struct interp_weights_data interp_weights_data, int *tgt_global_ids, double *ref_tgt_field_data, int use_csr_format)
 
static void compute_tgt_field (double ***src_field_buffer, double ***src_frac_mask_buffer, double **tgt_field, size_t collection_size, struct interp_weights_data interp_weights_data, size_t num_tgt_points, int use_csr_format)
 
static void check_results (int is_tgt, int info, size_t collection_size, size_t num_tgt_points, double ***src_field_buffer, double ***src_frac_mask_buffer, struct interp_weights_data interp_weights_data, int *tgt_global_ids, double *ref_tgt_field_data, int use_csr_format)
 

Detailed Description

Test
This test checks the raw data exchange feature.

Definition in file test_dummy_coupling_raw_c.c.

Macro Definition Documentation

◆ FRAC_MASK_TOL

#define FRAC_MASK_TOL   (1e-12)

Definition at line 21 of file test_dummy_coupling_raw_c.c.

◆ RAD

#define RAD   (0.01745329251994329576923690768489)

Definition at line 20 of file test_dummy_coupling_raw_c.c.

◆ RESULT_TOL

#define RESULT_TOL   (1e-2)

Definition at line 22 of file test_dummy_coupling_raw_c.c.

Function Documentation

◆ check_results() [1/2]

static void check_results ( int is_tgt,
int info,
size_t collection_size,
size_t num_tgt_points,
double *** src_field_buffer,
double *** src_frac_mask_buffer,
struct interp_weights_data interp_weights_data,
int * tgt_global_ids,
double * ref_tgt_field_data,
int use_csr_format )
static

◆ check_results() [2/2]

static void check_results ( int is_tgt,
int info,
size_t collection_size,
size_t num_tgt_points,
double *** src_field_buffer,
double *** src_frac_mask_buffer,
struct interp_weights_data interp_weights_data,
int * tgt_global_ids,
double * ref_tgt_field_data,
int use_csr_format )
static

Definition at line 1494 of file test_dummy_coupling_raw_c.c.

Here is the call graph for this function:

◆ compute_tgt_field() [1/2]

static void compute_tgt_field ( double *** src_field_buffer,
double *** src_frac_mask_buffer,
double ** tgt_field,
size_t collection_size,
struct interp_weights_data interp_weights_data,
size_t num_tgt_points,
int use_csr_format )
static
Here is the caller graph for this function:

◆ compute_tgt_field() [2/2]

static void compute_tgt_field ( double *** src_field_buffer,
double *** src_frac_mask_buffer,
double ** tgt_field,
size_t collection_size,
struct interp_weights_data interp_weights_data,
size_t num_tgt_points,
int use_csr_format )
static

Definition at line 1302 of file test_dummy_coupling_raw_c.c.

◆ get_interp_weights_data()

static struct interp_weights_data get_interp_weights_data ( int field_id,
int use_csr_format )
static

Definition at line 1456 of file test_dummy_coupling_raw_c.c.

Here is the call graph for this function:

◆ interp_weights_data_free()

static void interp_weights_data_free ( struct interp_weights_data * interp_weights_data)
static

Definition at line 1413 of file test_dummy_coupling_raw_c.c.

◆ multi_compute_weights()

static void multi_compute_weights ( double const tgt_coords[3],
int src_cell_id,
size_t src_cell_idx,
int const ** global_results_points,
double ** result_weights,
size_t * result_count,
void * user_data )
static

Definition at line 1428 of file test_dummy_coupling_raw_c.c.