YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
grid_cell.h
Go to the documentation of this file.
1// Copyright (c) 2024 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#include <stdio.h>
6
7#ifndef GRID_CELL_H
8#define GRID_CELL_H
9
10// YAC PUBLIC HEADER START
11
17
19 double (*coordinates_xyz)[3];
22 size_t array_size;
24};
25
32
40void yac_init_grid_cell(struct yac_grid_cell * cell);
41
49void yac_copy_grid_cell(struct yac_grid_cell in_cell, struct yac_grid_cell * out_cell);
50
56void yac_free_grid_cell(struct yac_grid_cell * cell);
57
58// YAC PUBLIC HEADER STOP
59
60#ifdef YAC_DEBUG_GRID_CELL
68void yac_print_grid_cell(FILE * stream, struct yac_grid_cell cell, char * name);
69#endif
70
71#endif // GRID_CELL_H
72
void yac_init_grid_cell(struct yac_grid_cell *cell)
Definition grid_cell.c:14
yac_cell_type
Definition grid_cell.h:26
@ YAC_LAT_CELL
Definition grid_cell.h:28
@ YAC_LON_LAT_CELL
Definition grid_cell.h:27
@ YAC_GREAT_CIRCLE_CELL
Definition grid_cell.h:29
@ YAC_MIXED_CELL
Definition grid_cell.h:30
yac_edge_type
Definition grid_cell.h:12
@ YAC_GREAT_CIRCLE_EDGE
great circle
Definition grid_cell.h:13
@ YAC_LAT_CIRCLE_EDGE
latitude circle
Definition grid_cell.h:14
@ YAC_LON_CIRCLE_EDGE
longitude circle
Definition grid_cell.h:15
void yac_free_grid_cell(struct yac_grid_cell *cell)
Definition grid_cell.c:44
void yac_copy_grid_cell(struct yac_grid_cell in_cell, struct yac_grid_cell *out_cell)
Definition grid_cell.c:34
size_t num_corners
Definition grid_cell.h:21
enum yac_edge_type * edge_type
Definition grid_cell.h:20
size_t array_size
Definition grid_cell.h:22
double(* coordinates_xyz)[3]
Definition grid_cell.h:19