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

Go to the source code of this file.

Macros

#define INTEL_ICX_BUG
 

Functions

static struct yac_grid_cell generate_cell_func (double *lon, double *lat, enum yac_edge_type *edge_type, size_t num_corners, void(*fun_LLtoXYZ)(double, double, double[]))
 
struct yac_grid_cell generate_cell_deg (double *lon, double *lat, enum yac_edge_type *edge_type, size_t num_corners)
 
struct yac_grid_cell generate_cell_rad (double *lon, double *lat, enum yac_edge_type *edge_type, size_t num_corners)
 
struct yac_grid_cell generate_cell_3d (yac_coordinate_pointer coords, enum yac_edge_type *edge_type, size_t num_corners)
 
int intersect (enum yac_edge_type edge_type_a, double lon_a, double lat_a, double lon_b, double lat_b, enum yac_edge_type edge_type_b, double lon_c, double lat_c, double lon_d, double lat_d, double *intersection)
 
void * to_pointer (void *data, size_t size_data)
 
int double_are_equal (double a, double b)
 
int double_are_unequal (double a, double b)
 
void set_even_io_rank_list (MPI_Comm comm)
 
void clear_yac_io_env ()
 
static int check_indices (size_t const *indices_a, size_t const *indices_b, size_t count)
 
void check_basic_grid_data (struct yac_basic_grid_data grid_a, struct yac_basic_grid_data grid_b, char const *grid_name)
 

Detailed Description

Test
A test for test-internal functions - not relevant for the external user.

Definition in file test_common.c.

Macro Definition Documentation

◆ INTEL_ICX_BUG

#define INTEL_ICX_BUG

Function Documentation

◆ check_basic_grid_data()

void check_basic_grid_data ( struct yac_basic_grid_data grid_a,
struct yac_basic_grid_data grid_b,
char const * grid_name )

Definition at line 180 of file test_common.c.

Here is the call graph for this function:

◆ check_indices()

static int check_indices ( size_t const * indices_a,
size_t const * indices_b,
size_t count )
static

Definition at line 152 of file test_common.c.

Here is the caller graph for this function:

◆ clear_yac_io_env()

void clear_yac_io_env ( )

Definition at line 145 of file test_common.c.

◆ double_are_equal()

int double_are_equal ( double a,
double b )

Definition at line 116 of file test_common.c.

◆ double_are_unequal()

int double_are_unequal ( double a,
double b )

Definition at line 121 of file test_common.c.

Here is the caller graph for this function:

◆ generate_cell_3d()

struct yac_grid_cell generate_cell_3d ( yac_coordinate_pointer coords,
enum yac_edge_type * edge_type,
size_t num_corners )

Definition at line 48 of file test_common.c.

◆ generate_cell_deg()

struct yac_grid_cell generate_cell_deg ( double * lon,
double * lat,
enum yac_edge_type * edge_type,
size_t num_corners )

Definition at line 36 of file test_common.c.

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

◆ generate_cell_func()

static struct yac_grid_cell generate_cell_func ( double * lon,
double * lat,
enum yac_edge_type * edge_type,
size_t num_corners,
void(* fun_LLtoXYZ )(double, double, double[]) )
static

Definition at line 19 of file test_common.c.

Here is the caller graph for this function:

◆ generate_cell_rad()

struct yac_grid_cell generate_cell_rad ( double * lon,
double * lat,
enum yac_edge_type * edge_type,
size_t num_corners )

Definition at line 42 of file test_common.c.

Here is the call graph for this function:

◆ intersect()

int intersect ( enum yac_edge_type edge_type_a,
double lon_a,
double lat_a,
double lon_b,
double lat_b,
enum yac_edge_type edge_type_b,
double lon_c,
double lat_c,
double lon_d,
double lat_d,
double * intersection )

Definition at line 64 of file test_common.c.

Here is the call graph for this function:

◆ set_even_io_rank_list()

void set_even_io_rank_list ( MPI_Comm comm)

Definition at line 126 of file test_common.c.

◆ to_pointer()

void * to_pointer ( void * data,
size_t size_data )

Definition at line 109 of file test_common.c.