YetAnotherCoupler 3.1.1
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
15
16struct grid_cell {
17 double (*coordinates_xyz)[3];
20 size_t array_size;
22};
23
30
38void yac_init_grid_cell(struct grid_cell * cell);
39
47void yac_copy_grid_cell(struct grid_cell in_cell, struct grid_cell * out_cell);
48
54void yac_free_grid_cell(struct grid_cell * cell);
55
56#ifdef YAC_DEBUG_GRIC_CELL
64void print_grid_cell(FILE * stream, struct grid_cell cell, char * name);
65#endif
66
67#endif // GRID_CELL_H
68
void yac_copy_grid_cell(struct grid_cell in_cell, struct grid_cell *out_cell)
Definition grid_cell.c:34
yac_cell_type
Definition grid_cell.h:24
@ MIXED_CELL
Definition grid_cell.h:28
@ LAT_CELL
Definition grid_cell.h:26
@ GREAT_CIRCLE_CELL
Definition grid_cell.h:27
@ LON_LAT_CELL
Definition grid_cell.h:25
yac_edge_type
Definition grid_cell.h:10
@ LAT_CIRCLE_EDGE
latitude circle
Definition grid_cell.h:12
@ GREAT_CIRCLE_EDGE
great circle
Definition grid_cell.h:11
@ LON_CIRCLE_EDGE
longitude circle
Definition grid_cell.h:13
void yac_init_grid_cell(struct grid_cell *cell)
Definition grid_cell.c:14
void yac_free_grid_cell(struct grid_cell *cell)
Definition grid_cell.c:44
double(* coordinates_xyz)[3]
Definition grid_cell.h:17
enum yac_edge_type * edge_type
Definition grid_cell.h:18
size_t array_size
Definition grid_cell.h:20
size_t num_corners
Definition grid_cell.h:19