19 size_t * tgt_points,
size_t count,
37 size_t * tgt_points,
size_t count,
45 yac_int * tgt_global_ids =
xmalloc(count *
sizeof(*tgt_global_ids));
47 xmalloc(count *
sizeof(*tgt_coordinates));
50 interp_grid, tgt_points, count, tgt_global_ids);
52 interp_grid, tgt_points, count, tgt_coordinates);
59 free(tgt_coordinates);
67 void * constructor_user_data,
69 void * do_search_user_data) {
77 if (constructor_callback != NULL)
78 constructor_callback(constructor_user_data);
113 "ERROR(interp_method_check_add_callback): "
114 "key \"%s\" has been set for the same callback type (%d)",
#define ENSURE_ARRAY_SIZE(arrayp, curr_array_size, req_size)
void yac_interp_grid_get_tgt_global_ids(struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, yac_int *tgt_global_ids)
void yac_interp_grid_get_tgt_coordinates(struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, yac_coordinate_pointer tgt_coordinates)
static size_t do_search_callback(struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)
void yac_interp_method_check_get_do_search_callback(char const *key, func_do_search *do_search_callback, void **user_data)
void yac_interp_method_check_add_constructor_callback(func_constructor constructor_callback, void *user_data, char const *key)
void yac_interp_method_check_get_constructor_callback(char const *key, func_constructor *constructor_callback, void **user_data)
void yac_interp_method_check_add_do_search_callback(func_do_search do_search_callback, void *user_data, char const *key)
static void interp_method_get_callback(char const *key, func_dummy *callback, enum callback_type type, void **user_data)
struct interp_method * yac_interp_method_check_new(func_constructor constructor_callback, void *constructor_user_data, func_do_search do_search_callback, void *do_search_user_data)
static size_t do_search_check(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_check(struct interp_method *method)
static void interp_method_check_add_callback(func_dummy callback, enum callback_type type, void *user_data, char const *key)
static size_t callback_lookup_table_size
void yac_interp_method_check_buf_free()
static struct interp_method_vtable interp_method_check_vtable
static size_t callback_lookup_table_array_size
static struct @7 * callback_lookup_table
void(* func_do_search)(yac_int const *global_ids, double const (*coordinates_xyz)[3], size_t count, void *user_data)
void(* func_constructor)(void *user_data)
struct interp_method_vtable * vtable
void * do_search_user_data
func_do_search do_search_callback
size_t(* do_search)(struct interp_method *method, struct yac_interp_grid *grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)
#define YAC_ASSERT_F(exp, format,...)
double const (* yac_const_coordinate_pointer)[3]
double(* yac_coordinate_pointer)[3]