25 src_field_locations[i] =
34 if (*method != NULL) {
40 size_t final_count = 0;
41 int interpolation_complete = 0;
42 while (*method != NULL) {
44 (*method)->vtable->do_search(
45 *method, interp_grid, tgt_points + final_count,
46 temp_count - final_count, weights, &interpolation_complete);
49 MPI_IN_PLACE, &interpolation_complete, 1, MPI_INT,
50 MPI_MAX, interp_grid_comm), interp_grid_comm);
64 while (*method != NULL) {
#define YAC_INSTRUMENT_START(ID)
Enter an instrumented region.
#define YAC_INSTRUMENT_STOP(ID)
Exit an instrumented region entered with YAC_INSTRUMENT_START(ID).
enum yac_location yac_interp_grid_get_tgt_field_location(struct yac_interp_grid *interp_grid)
size_t yac_interp_grid_get_num_src_fields(struct yac_interp_grid *interp_grid)
void yac_interp_grid_get_tgt_points(struct yac_interp_grid *interp_grid, size_t **tgt_indices, size_t *count)
MPI_Comm yac_interp_grid_get_MPI_Comm(struct yac_interp_grid *interp_grid)
enum yac_location yac_interp_grid_get_src_field_location(struct yac_interp_grid *interp_grid, size_t src_field_idx)
void yac_interp_method_cleanup()
Free static internal resources of all interpolation methods.
void yac_interp_method_delete(struct interp_method **method)
Delete an interpolation stack and free its resources (but not the pointer array).
struct yac_interp_weights * yac_interp_method_do_search(struct interp_method **method, struct yac_interp_grid *interp_grid)
Perform weight computation using given interpolation stack and grid.
void yac_interp_method_callback_buf_free()
void yac_interp_method_check_buf_free()
struct yac_interp_weights * yac_interp_weights_new(MPI_Comm comm, enum yac_location tgt_location, enum yac_location *src_locations, size_t num_src_fields)
void(* delete)(struct interp_method *method)
struct interp_method_vtable * vtable
#define yac_mpi_call(call, comm)