YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
basic_grid.c File Reference
#include <stdio.h>
#include <string.h>
#include "basic_grid.h"
#include "grid_cell.h"
#include "field_data_set.h"
Include dependency graph for basic_grid.c:

Go to the source code of this file.

Data Structures

struct  yac_basic_grid
 

Functions

struct yac_basic_gridyac_basic_grid_new (char const *name, struct yac_basic_grid_data grid_data)
 
struct yac_basic_gridyac_basic_grid_empty_new (char const *name)
 
void yac_basic_grid_delete (struct yac_basic_grid *grid)
 
yac_const_coordinate_pointer yac_basic_grid_get_field_coordinates (struct yac_basic_grid *grid, struct yac_interp_field field)
 
int const * yac_basic_grid_get_core_mask (struct yac_basic_grid *grid, enum yac_location location)
 
int const * yac_basic_grid_get_field_mask (struct yac_basic_grid *grid, struct yac_interp_field field)
 
char const * yac_basic_grid_get_name (struct yac_basic_grid *grid)
 
struct yac_basic_grid_datayac_basic_grid_get_data (struct yac_basic_grid *grid)
 
size_t yac_basic_grid_get_data_size (struct yac_basic_grid *grid, enum yac_location location)
 
size_t yac_basic_grid_get_data_size_f2c (struct yac_basic_grid *grid, int location)
 
size_t yac_basic_grid_get_named_mask_idx (struct yac_basic_grid *grid, enum yac_location location, char const *mask_name)
 
size_t yac_basic_grid_add_coordinates_nocpy (struct yac_basic_grid *grid, enum yac_location location, yac_coordinate_pointer coordinates)
 
size_t yac_basic_grid_add_coordinates_nocpy_f2c (struct yac_basic_grid *grid, int location, double *coordinates)
 
size_t yac_basic_grid_add_coordinates (struct yac_basic_grid *grid, enum yac_location location, yac_coordinate_pointer coordinates, size_t count)
 
size_t yac_basic_grid_add_coordinates_f2c (struct yac_basic_grid *grid, int location, double *coordinates, size_t count)
 
size_t yac_basic_grid_add_mask_nocpy (struct yac_basic_grid *grid, enum yac_location location, int const *mask, char const *mask_name)
 
size_t yac_basic_grid_add_mask_nocpy_f2c (struct yac_basic_grid *grid, int location, int const *mask, char const *mask_name)
 
size_t yac_basic_grid_add_mask (struct yac_basic_grid *grid, enum yac_location location, int const *mask, size_t count, char const *mask_name)
 
size_t yac_basic_grid_add_mask_f2c (struct yac_basic_grid *grid, int location, int const *mask, size_t count, char const *mask_name)
 
struct yac_field_datayac_basic_grid_get_field_data (struct yac_basic_grid *grid, enum yac_location location)
 
struct yac_basic_gridyac_basic_grid_reg_2d_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices)
 
struct yac_basic_gridyac_basic_grid_reg_2d_deg_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices)
 
struct yac_basic_gridyac_basic_grid_curve_2d_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices)
 
struct yac_basic_gridyac_basic_grid_curve_2d_deg_new (char const *name, size_t nbr_vertices[2], int cyclic[2], double *lon_vertices, double *lat_vertices)
 
struct yac_basic_gridyac_basic_grid_unstruct_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex)
 
struct yac_basic_gridyac_basic_grid_unstruct_deg_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex)
 
struct yac_basic_gridyac_basic_grid_unstruct_ll_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex)
 
struct yac_basic_gridyac_basic_grid_unstruct_ll_deg_new (char const *name, size_t nbr_vertices, size_t nbr_cells, int *num_vertices_per_cell, double *x_vertices, double *y_vertices, int *cell_to_vertex)
 

Variables

static struct yac_basic_grid_data yac_basic_grid_data_empty
 

Function Documentation

◆ yac_basic_grid_add_coordinates()

size_t yac_basic_grid_add_coordinates ( struct yac_basic_grid grid,
enum yac_location  location,
yac_coordinate_pointer  coordinates,
size_t  count 
)
Examples
test_basic_grid.c, test_instance_parallel1.c, test_instance_parallel2.c, test_interp_grid_parallel.c, test_interp_method_creep_parallel.c, test_interp_method_ncc_parallel.c, and test_interpolation_parallel4.c.

Definition at line 227 of file basic_grid.c.

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

◆ yac_basic_grid_add_coordinates_f2c()

size_t yac_basic_grid_add_coordinates_f2c ( struct yac_basic_grid grid,
int  location,
double *  coordinates,
size_t  count 
)
Examples
test_basic_grid.c.

Definition at line 243 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_add_coordinates_nocpy()

size_t yac_basic_grid_add_coordinates_nocpy ( struct yac_basic_grid grid,
enum yac_location  location,
yac_coordinate_pointer  coordinates 
)

◆ yac_basic_grid_add_coordinates_nocpy_f2c()

size_t yac_basic_grid_add_coordinates_nocpy_f2c ( struct yac_basic_grid grid,
int  location,
double *  coordinates 
)
Examples
test_basic_grid.c.

Definition at line 219 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_add_mask()

size_t yac_basic_grid_add_mask ( struct yac_basic_grid grid,
enum yac_location  location,
int const *  mask,
size_t  count,
char const *  mask_name 
)
Examples
test_basic_grid.c, test_interp_method_avg_parallel.c, test_interp_method_conserv_parallel.c, test_interp_method_creep_parallel.c, and test_interp_method_ncc_parallel.c.

Definition at line 279 of file basic_grid.c.

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

◆ yac_basic_grid_add_mask_f2c()

size_t yac_basic_grid_add_mask_f2c ( struct yac_basic_grid grid,
int  location,
int const *  mask,
size_t  count,
char const *  mask_name 
)
Examples
test_basic_grid.c.

Definition at line 295 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_add_mask_nocpy()

size_t yac_basic_grid_add_mask_nocpy ( struct yac_basic_grid grid,
enum yac_location  location,
int const *  mask,
char const *  mask_name 
)

◆ yac_basic_grid_add_mask_nocpy_f2c()

size_t yac_basic_grid_add_mask_nocpy_f2c ( struct yac_basic_grid grid,
int  location,
int const *  mask,
char const *  mask_name 
)
Examples
test_basic_grid.c.

Definition at line 270 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_curve_2d_deg_new()

struct yac_basic_grid * yac_basic_grid_curve_2d_deg_new ( char const *  name,
size_t  nbr_vertices[2],
int  cyclic[2],
double *  lon_vertices,
double *  lat_vertices 
)
Examples
test_basic_grid.c.

Definition at line 352 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_curve_2d_new()

struct yac_basic_grid * yac_basic_grid_curve_2d_new ( char const *  name,
size_t  nbr_vertices[2],
int  cyclic[2],
double *  lon_vertices,
double *  lat_vertices 
)
Examples
test_basic_grid.c.

Definition at line 341 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_delete()

void yac_basic_grid_delete ( struct yac_basic_grid grid)

◆ yac_basic_grid_empty_new()

struct yac_basic_grid * yac_basic_grid_empty_new ( char const *  name)

◆ yac_basic_grid_get_core_mask()

int const * yac_basic_grid_get_core_mask ( struct yac_basic_grid grid,
enum yac_location  location 
)
Examples
test_basic_grid.c.

Definition at line 96 of file basic_grid.c.

Here is the caller graph for this function:

◆ yac_basic_grid_get_data()

struct yac_basic_grid_data * yac_basic_grid_get_data ( struct yac_basic_grid grid)
Examples
test_basic_grid.c, test_dist_grid_pair_parallel.c, test_interp_method_conserv_parallel.c, and test_interpolation_parallel5.c.

Definition at line 132 of file basic_grid.c.

Here is the caller graph for this function:

◆ yac_basic_grid_get_data_size()

size_t yac_basic_grid_get_data_size ( struct yac_basic_grid grid,
enum yac_location  location 
)
Examples
test_basic_grid.c.

Definition at line 142 of file basic_grid.c.

Here is the caller graph for this function:

◆ yac_basic_grid_get_data_size_f2c()

size_t yac_basic_grid_get_data_size_f2c ( struct yac_basic_grid grid,
int  location 
)
Examples
test_basic_grid.c.

Definition at line 165 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_get_field_coordinates()

yac_const_coordinate_pointer yac_basic_grid_get_field_coordinates ( struct yac_basic_grid grid,
struct yac_interp_field  field 
)
Examples
test_basic_grid.c.

Definition at line 76 of file basic_grid.c.

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

◆ yac_basic_grid_get_field_data()

struct yac_field_data * yac_basic_grid_get_field_data ( struct yac_basic_grid grid,
enum yac_location  location 
)
Examples
test_basic_grid.c.

Definition at line 304 of file basic_grid.c.

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

◆ yac_basic_grid_get_field_mask()

int const * yac_basic_grid_get_field_mask ( struct yac_basic_grid grid,
struct yac_interp_field  field 
)
Examples
test_basic_grid.c.

Definition at line 113 of file basic_grid.c.

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

◆ yac_basic_grid_get_name()

char const * yac_basic_grid_get_name ( struct yac_basic_grid grid)
Examples
test_basic_grid.c.

Definition at line 123 of file basic_grid.c.

Here is the caller graph for this function:

◆ yac_basic_grid_get_named_mask_idx()

size_t yac_basic_grid_get_named_mask_idx ( struct yac_basic_grid grid,
enum yac_location  location,
char const *  mask_name 
)
Examples
test_basic_grid.c.

Definition at line 172 of file basic_grid.c.

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

◆ yac_basic_grid_new()

struct yac_basic_grid * yac_basic_grid_new ( char const *  name,
struct yac_basic_grid_data  grid_data 
)

◆ yac_basic_grid_reg_2d_deg_new()

struct yac_basic_grid * yac_basic_grid_reg_2d_deg_new ( char const *  name,
size_t  nbr_vertices[2],
int  cyclic[2],
double *  lon_vertices,
double *  lat_vertices 
)
Examples
test_basic_grid.c.

Definition at line 330 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_reg_2d_new()

struct yac_basic_grid * yac_basic_grid_reg_2d_new ( char const *  name,
size_t  nbr_vertices[2],
int  cyclic[2],
double *  lon_vertices,
double *  lat_vertices 
)
Examples
test_basic_grid.c.

Definition at line 319 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_unstruct_deg_new()

struct yac_basic_grid * yac_basic_grid_unstruct_deg_new ( char const *  name,
size_t  nbr_vertices,
size_t  nbr_cells,
int *  num_vertices_per_cell,
double *  x_vertices,
double *  y_vertices,
int *  cell_to_vertex 
)
Examples
test_basic_grid.c.

Definition at line 376 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_unstruct_ll_deg_new()

struct yac_basic_grid * yac_basic_grid_unstruct_ll_deg_new ( char const *  name,
size_t  nbr_vertices,
size_t  nbr_cells,
int *  num_vertices_per_cell,
double *  x_vertices,
double *  y_vertices,
int *  cell_to_vertex 
)
Examples
test_basic_grid.c.

Definition at line 402 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_unstruct_ll_new()

struct yac_basic_grid * yac_basic_grid_unstruct_ll_new ( char const *  name,
size_t  nbr_vertices,
size_t  nbr_cells,
int *  num_vertices_per_cell,
double *  x_vertices,
double *  y_vertices,
int *  cell_to_vertex 
)
Examples
test_basic_grid.c.

Definition at line 389 of file basic_grid.c.

Here is the call graph for this function:

◆ yac_basic_grid_unstruct_new()

struct yac_basic_grid * yac_basic_grid_unstruct_new ( char const *  name,
size_t  nbr_vertices,
size_t  nbr_cells,
int *  num_vertices_per_cell,
double *  x_vertices,
double *  y_vertices,
int *  cell_to_vertex 
)
Examples
test_basic_grid.c.

Definition at line 363 of file basic_grid.c.

Here is the call graph for this function:

Variable Documentation

◆ yac_basic_grid_data_empty

struct yac_basic_grid_data yac_basic_grid_data_empty
static
Initial value:
= {
.vertex_coordinates = NULL,
.cell_ids = NULL,
.vertex_ids = NULL,
.edge_ids = NULL,
.num_cells = 0,
.num_vertices = 0,
.num_edges = 0,
.core_cell_mask = NULL,
.core_vertex_mask = NULL,
.core_edge_mask = NULL,
.num_vertices_per_cell = NULL,
.num_cells_per_vertex = NULL,
.cell_to_vertex = NULL,
.cell_to_vertex_offsets = NULL,
.cell_to_edge = NULL,
.cell_to_edge_offsets = NULL,
.vertex_to_cell = NULL,
.vertex_to_cell_offsets = NULL,
.edge_to_vertex = NULL,
.edge_type = NULL,
.num_total_cells = 0,
.num_total_vertices = 0,
.num_total_edges = 0
}

Definition at line 19 of file basic_grid.c.