YAC 3.8.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_instance_parallel1.c File Reference
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "tests.h"
#include "test_common.h"
#include "instance.h"
#include "yac.h"
#include "yac_mpi.h"
#include "dist_grid_utils.h"
#include "weight_file_common.h"
#include "grid_file_common.h"
#include "config_yaml.h"
#include "interp_method_callback.h"
#include "event.h"
#include "geometry.h"
#include "fields.h"
Include dependency graph for test_instance_parallel1.c:

Go to the source code of this file.

Functions

static void compute_weights_callback (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 void do_search_callback (yac_int const *global_ids, double const (*coordinates_xyz)[3], size_t count, void *user_data)
 

Detailed Description

Test
This example show how to set up a YAC instance. It uses three processes.

Definition in file test_instance_parallel1.c.

Function Documentation

◆ compute_weights_callback()

static void compute_weights_callback ( 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 1056 of file test_instance_parallel1.c.

◆ do_search_callback()

static void do_search_callback ( yac_int const * global_ids,
double const (*) coordinates_xyz[3],
size_t count,
void * user_data )
static

Definition at line 1073 of file test_instance_parallel1.c.