YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Functions
read_mpiom_grid.h File Reference
#include "basic_grid.h"
Include dependency graph for read_mpiom_grid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct yac_basic_grid_data yac_read_mpiom_basic_grid_data (char const *filename)
 
struct yac_basic_gridyac_read_mpiom_basic_grid (char const *filename, char const *gridname)
 
void yac_read_mpiom_grid_information (const char *filename, int *num_vertices, int *num_cells, int **num_vertices_per_cell, int **cell_to_vertex, double **x_vertices, double **y_vertices, double **x_cells, double **y_cells, int **cellmask)
 
void yac_read_part_mpiom_grid_information (const char *filename, int *num_vertices, int *num_cells, int **num_vertices_per_cell, int **cell_to_vertex, double **x_vertices, double **y_vertices, double **x_cells, double **y_cells, int **global_cell_id, int **cell_mask, int **cell_core_mask, int **global_corner_id, int **corner_core_mask, int rank, int size)
 

Function Documentation

◆ yac_read_mpiom_basic_grid()

struct yac_basic_grid * yac_read_mpiom_basic_grid ( char const *  filename,
char const *  gridname 
)

reads in an mpiom grid netcdf file and generates a struct yac_basic_grid_data from it

Parameters
[in]filenamename of the mpiom grid netcdf file
[in]gridnamename of the grid
Returns
yac_basic_grid structure that contains the mpiom grid

Definition at line 344 of file read_mpiom_grid.c.

Here is the call graph for this function:

◆ yac_read_mpiom_basic_grid_data()

struct yac_basic_grid_data yac_read_mpiom_basic_grid_data ( char const *  filename)

reads in an mpiom grid netcdf file and generates a struct yac_basic_grid_data from it

Parameters
[in]filenamename of the mpiom grid netcdf file
Returns
yac_basic_grid_data structure that contains the mpiom grid

Definition at line 309 of file read_mpiom_grid.c.

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

◆ yac_read_mpiom_grid_information()

void yac_read_mpiom_grid_information ( const char *  filename,
int *  num_vertices,
int *  num_cells,
int **  num_vertices_per_cell,
int **  cell_to_vertex,
double **  x_vertices,
double **  y_vertices,
double **  x_cells,
double **  y_cells,
int **  cellmask 
)

reads in an mpiom grid netcdf file and return the grid information in a format that is supported by the YAC user interface.

Parameters
[in]filenamename of the mpiom grid netcdf file
[out]num_verticesnumber of vertices in the grid
[out]num_cellsnumber of cells in the grid
[out]num_vertices_per_cellnumber of vertices per cell
[out]cell_to_vertexvertex indices for each cell
[out]x_verticeslongitudes of vertices
[out]y_verticeslatitudes of vertices
[out]x_cellslongitudes of cell center
[out]y_cellslatitudes of cell center
[out]cellmaskmask value for cells

Definition at line 42 of file read_mpiom_grid.c.

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

◆ yac_read_part_mpiom_grid_information()

void yac_read_part_mpiom_grid_information ( const char *  filename,
int *  num_vertices,
int *  num_cells,
int **  num_vertices_per_cell,
int **  cell_to_vertex,
double **  x_vertices,
double **  y_vertices,
double **  x_cells,
double **  y_cells,
int **  global_cell_id,
int **  cell_mask,
int **  cell_core_mask,
int **  global_corner_id,
int **  corner_core_mask,
int  rank,
int  size 
)

reads in an partition mpiom grid netcdf file and return the grid information in a format that is supported by the YAC user interface.

Parameters
[in]filenamename of the mpiom grid netcdf file
[out]num_verticesnumber of vertices in the grid
[out]num_cellsnumber of cells in the grid
[out]num_vertices_per_cellnumber of vertices per cell
[out]cell_to_vertexvertex indices for each cell
[out]x_verticeslongitudes of vertices
[out]y_verticeslatitudes of vertices
[out]x_cellslongitudes of cell center
[out]y_cellslatitudes of cell center
[out]global_cell_idglobal cell IDs
[out]cell_maskmask value for cells
[out]cell_core_maskcell core mask
[out]global_corner_idglobal corner IDs
[out]corner_core_maskcorner core mask
[out]ranklocal MPI rank
[out]sizenumber of MPI ranks

Definition at line 160 of file read_mpiom_grid.c.

Here is the call graph for this function: