YAC 3.17.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_common.h File Reference
#include <mpi.h>
#include "utils_common.h"
#include "grids/grid_cell.h"
#include "grids/basic_grid_data.h"
Include dependency graph for test_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TO_POINTER(a)   (to_pointer(&a, sizeof(a)))
 

Functions

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 ()
 
void check_basic_grid_data (struct yac_basic_grid_data grid_a, struct yac_basic_grid_data grid_b, char const *grid_name)
 

Macro Definition Documentation

◆ TO_POINTER

#define TO_POINTER ( a)    (to_pointer(&a, sizeof(a)))

Definition at line 14 of file test_common.h.

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 181 of file test_common.c.

Here is the call graph for this function:

◆ clear_yac_io_env()

void clear_yac_io_env ( )

Definition at line 146 of file test_common.c.

◆ double_are_equal()

int double_are_equal ( double a,
double b )

Definition at line 117 of file test_common.c.

◆ double_are_unequal()

int double_are_unequal ( double a,
double b )

Definition at line 122 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 49 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 37 of file test_common.c.

Here is the call 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 43 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 65 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 127 of file test_common.c.

◆ to_pointer()

void * to_pointer ( void * data,
size_t size_data )

Definition at line 110 of file test_common.c.