YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_read_icon_common.c File Reference
#include <stdio.h>
#include <string.h>
#include <netcdf.h>
#include "tests.h"
#include "test_common.h"
#include "io_utils.h"
#include "geometry.h"
#include "test_read_icon_common.h"
Include dependency graph for test_read_icon_common.c:

Go to the source code of this file.

Functions

static void def_coord_unit_att (int ncid, int var_id, enum coord_units coord_unit)
 
static void write_coord (int ncid, int var_id, double *var, size_t var_size, enum coord_units coord_unit)
 
void write_test_grid_file (char const *file_name, enum coord_units coord_unit)
 
void write_dummy_grid_file (char *grid_name, char *grid_filename, char *mask_filename, int with_corners, size_t num_lon, size_t num_lat, double lon_range[2], double lat_range[2])
 
void write_test_grid_file_f2c (char const *file_name, int coord_unit)
 

Variables

int vertex_of_cell [3][16]
 
int edge_of_cell [3][16]
 
int cells_of_vertex [6][15]
 
int vertex_of_edge [2][30]
 

Function Documentation

◆ def_coord_unit_att()

static void def_coord_unit_att ( int ncid,
int var_id,
enum coord_units coord_unit )
static

Definition at line 35 of file test_read_icon_common.c.

Here is the caller graph for this function:

◆ write_coord()

static void write_coord ( int ncid,
int var_id,
double * var,
size_t var_size,
enum coord_units coord_unit )
static

Definition at line 43 of file test_read_icon_common.c.

Here is the caller graph for this function:

◆ write_dummy_grid_file()

void write_dummy_grid_file ( char * grid_name,
char * grid_filename,
char * mask_filename,
int with_corners,
size_t num_lon,
size_t num_lat,
double lon_range[2],
double lat_range[2] )

Definition at line 141 of file test_read_icon_common.c.

Here is the call graph for this function:

◆ write_test_grid_file()

void write_test_grid_file ( char const * file_name,
enum coord_units coord_unit )

Definition at line 59 of file test_read_icon_common.c.

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

◆ write_test_grid_file_f2c()

void write_test_grid_file_f2c ( char const * file_name,
int coord_unit )

Definition at line 350 of file test_read_icon_common.c.

Here is the call graph for this function:

Variable Documentation

◆ cells_of_vertex

int cells_of_vertex[6][15]
Initial value:
= {{1, 1,11,13,14,1, 2, 9,14,3, 4, 8,5,6,7},
{0, 2,12,14, 0,2, 3,10,15,4, 5, 9,6,7,0},
{0,12,13,15, 0,3, 4,11,16,5, 6,16,7,8,0},
{0, 0, 0, 0, 0,0,10,13, 0,0, 8, 0,0,0,0},
{0, 0, 0, 0, 0,0,11,15, 0,0, 9, 0,0,0,0},
{0, 0, 0, 0, 0,0,12,16, 0,0,10, 0,0,0,0}}

Definition at line 25 of file test_read_icon_common.c.

◆ edge_of_cell

int edge_of_cell[3][16]
Initial value:
= {{1,4,13,16,22,25,28,24,19,15,7,3,6,9,10,18},
{4,13,16,22,25,28,30,27,24,19,15,7,10,12,18,21},
{2,5,14,17,23,26,29,26,20,17,8,5,8,11,11,20}}

Definition at line 22 of file test_read_icon_common.c.

◆ vertex_of_cell

int vertex_of_cell[3][16]
Initial value:
= {{1,2,6,7,10,11,13,11,8,7,3,2,3,4,4,8},
{2,6,7,10,11,13,14,12,11,8,7,3,4,5,8,9},
{6,7,10,11,13,14,15,14,12,11,8,7,8,9,9,12}}

Definition at line 19 of file test_read_icon_common.c.

◆ vertex_of_edge

int vertex_of_edge[2][30]
Initial value:
= {{1,1,2,2,2,3,3,3,4,4,4,5, 6,6,7,7,7,8,8,8,9, 10,10,11,11,11,12, 13,13,14},
{2,6,3,6,7,4,7,8,5,8,9,9, 7,10,8,10,11,9,11,12,12, 11,13,12,13,14,14, 14,15,15}}

Definition at line 31 of file test_read_icon_common.c.