YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_point_sphere_part.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <float.h>
#include <string.h>
#include "tests.h"
#include "test_common.h"
#include "grids/basic_grid.h"
#include "sphere_part.h"
#include "geometry.h"
Include dependency graph for test_point_sphere_part.c:

Go to the source code of this file.

Data Structures

struct  distance_index
 

Functions

static int compare_distance_index (const void *a, const void *b)
 
static void point_sphere_test_NNN (struct point_sphere_part_search *search, size_t n, double(*xyz_coordinates)[3], size_t num_points, size_t **local_point_ids, size_t *local_point_ids_array_size, size_t *num_local_point_ids, struct distance_index *distances)
 
static void point_sphere_test_NNN_ubound (struct point_sphere_part_search *search, size_t num_points, yac_coordinate_pointer xyz_coordinates, size_t n, struct distance_index *distances)
 
static void point_sphere_test_NNN_bnd_circle (struct point_sphere_part_search *search, size_t num_points, yac_coordinate_pointer xyz_coordinates, size_t n, struct distance_index *distances)
 
static void gen_random_point (double *point)
 
static void gen_random_bnd_circle (struct bounding_circle *circle)
 

Detailed Description

Test
This contains a test of the proc_sphere_part grid search algorithm.

Definition in file test_point_sphere_part.c.

Function Documentation

◆ compare_distance_index()

static int compare_distance_index ( const void * a,
const void * b )
static

Definition at line 53 of file test_point_sphere_part.c.

◆ gen_random_bnd_circle()

static void gen_random_bnd_circle ( struct bounding_circle * circle)
static

Definition at line 197 of file test_point_sphere_part.c.

Here is the call graph for this function:

◆ gen_random_point()

static void gen_random_point ( double * point)
static

Definition at line 190 of file test_point_sphere_part.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ point_sphere_test_NNN()

static void point_sphere_test_NNN ( struct point_sphere_part_search * search,
size_t n,
double(*) xyz_coordinates[3],
size_t num_points,
size_t ** local_point_ids,
size_t * local_point_ids_array_size,
size_t * num_local_point_ids,
struct distance_index * distances )
static

Definition at line 68 of file test_point_sphere_part.c.

Here is the call graph for this function:

◆ point_sphere_test_NNN_bnd_circle()

static void point_sphere_test_NNN_bnd_circle ( struct point_sphere_part_search * search,
size_t num_points,
yac_coordinate_pointer xyz_coordinates,
size_t n,
struct distance_index * distances )
static

Definition at line 129 of file test_point_sphere_part.c.

Here is the call graph for this function:

◆ point_sphere_test_NNN_ubound()

static void point_sphere_test_NNN_ubound ( struct point_sphere_part_search * search,
size_t num_points,
yac_coordinate_pointer xyz_coordinates,
size_t n,
struct distance_index * distances )
static

Definition at line 108 of file test_point_sphere_part.c.

Here is the call graph for this function: