YetAnotherCoupler 3.4.0
Loading...
Searching...
No Matches
grid_cell.h File Reference
#include <stdio.h>
Include dependency graph for grid_cell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  yac_grid_cell
 

Enumerations

enum  yac_edge_type { YAC_GREAT_CIRCLE_EDGE = 0 , YAC_LAT_CIRCLE_EDGE = 1 , YAC_LON_CIRCLE_EDGE = 2 }
 
enum  yac_cell_type { YAC_LON_LAT_CELL , YAC_LAT_CELL , YAC_GREAT_CIRCLE_CELL , YAC_MIXED_CELL }
 

Functions

void yac_init_grid_cell (struct yac_grid_cell *cell)
 
void yac_copy_grid_cell (struct yac_grid_cell in_cell, struct yac_grid_cell *out_cell)
 
void yac_free_grid_cell (struct yac_grid_cell *cell)
 

Enumeration Type Documentation

◆ yac_cell_type

Enumerator
YAC_LON_LAT_CELL 
YAC_LAT_CELL 
YAC_GREAT_CIRCLE_CELL 
YAC_MIXED_CELL 

Definition at line 26 of file grid_cell.h.

◆ yac_edge_type

Enumerator
YAC_GREAT_CIRCLE_EDGE 

great circle

YAC_LAT_CIRCLE_EDGE 

latitude circle

YAC_LON_CIRCLE_EDGE 

longitude circle

Definition at line 12 of file grid_cell.h.

Function Documentation

◆ yac_copy_grid_cell()

void yac_copy_grid_cell ( struct yac_grid_cell in_cell,
struct yac_grid_cell * out_cell )

copies a given grid cell

Parameters
[in]in_cellcell to be copied
[out]out_cellcopied cell
Remarks
out_cell needs to be a cell that has previously been initialised or a cell that already contains valid data

Definition at line 34 of file grid_cell.c.

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

◆ yac_free_grid_cell()

void yac_free_grid_cell ( struct yac_grid_cell * cell)

frees all memory associated with a grid_cell object and reinitialised the cell

Parameters
[in,out]cell

Definition at line 44 of file grid_cell.c.

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

◆ yac_init_grid_cell()

void yac_init_grid_cell ( struct yac_grid_cell * cell)

initiates a grid_cell object before the first being used a grid_cell object has to be initialised

Parameters
[in]cellobject to be initialised
See also
free_grid_cell
get_grid_cell

Definition at line 14 of file grid_cell.c.

Here is the caller graph for this function: