YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
read_exodus_grid.h File Reference
#include "grids/basic_grid.h"
#include <mpi.h>
Include dependency graph for read_exodus_grid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void yac_read_exodus_grid_information_parallel (const char *filename, MPI_Comm comm, yac_coordinate_pointer *node_coords, yac_int **elem_ids, yac_int **node_ids, size_t *num_elem, size_t *num_nodes, int **num_nodes_per_elem, int **num_elem_per_node, size_t **elem_to_node, size_t **node_to_elem)
 
struct yac_basic_grid_data yac_read_exodus_basic_grid_data_parallel (const char *filename, int use_ll_edges, MPI_Comm comm)
 
struct yac_basic_gridyac_read_exodus_basic_grid_parallel (char const *filename, char const *gridname, int use_ll_edges, MPI_Comm comm)
 

Function Documentation

◆ yac_read_exodus_basic_grid_data_parallel()

struct yac_basic_grid_data yac_read_exodus_basic_grid_data_parallel ( const char * filename,
int use_ll_edges,
MPI_Comm comm )

Reads in an EXODUS-formated grid netcdf file in parallel and returns a yac_basic_grid_data built from it.

Parameters
[in]filenamename of the EXODUS-formated grid netcdf file
[in]use_ll_edgesif != 0, assume that all edges of the grid follow circles of either constant longitude or constant latitude and set edge types accordingly. Otherwise it is assumed that all edges follow great circles.
[in]commMPI communicator containing all proceses that will get a part of the grid
Returns
yac_basic_grid_data structure containing part of the grid.
See also
Configuration of parallel IO in YAC

Definition at line 420 of file read_exodus_grid.c.

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

◆ yac_read_exodus_basic_grid_parallel()

struct yac_basic_grid * yac_read_exodus_basic_grid_parallel ( char const * filename,
char const * gridname,
int use_ll_edges,
MPI_Comm comm )

Reads in an EXODUS-formated grid netcdf file in parallel and returns a yac_basic_grid built from it.

Parameters
[in]filenamename of the EXODUS-formated grid netcdf file
[in]gridnamename of grid
[in]use_ll_edgesif != 0, assume that all edges of the grid follow circles of either constant longitude or constant latitude and set edge types accordingly. Otherwise it is assumed that all edges follow great circles.
[in]commMPI communicator containing all proceses that will get a part of the grid
Returns
yac_basic_grid structure containing part of the grid.
Remarks
The data of each process contains no halo cells.
See also
Configuration of parallel IO in YAC

Definition at line 547 of file read_exodus_grid.c.

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

◆ yac_read_exodus_grid_information_parallel()

void yac_read_exodus_grid_information_parallel ( const char * filename,
MPI_Comm comm,
yac_coordinate_pointer * node_coords,
yac_int ** elem_ids,
yac_int ** node_ids,
size_t * num_elem,
size_t * num_nodes,
int ** num_nodes_per_elem,
int ** num_elem_per_node,
size_t ** elem_to_node,
size_t ** node_to_elem )

Reads in an EXODUS-formated grid netcdf file and returns the grid information in a format that allows the user to set up a yac_basic_grid_data structure. The reading is done in parallel and a basic domain decomposition is applied.

Parameters
[in]filenamename of the EXODUS-formated grid netcdf file
[in]commMPI communicator containing all proceses that will get a part of the grid
[out]node_coordsCartesian coordinates of all nodes/vertices
[out]elem_idsglobal ids of local elements/cells
[out]node_idsglobal ids of local nodes/vertices
[out]num_elemnumber of elements/cells in the local part of the grid
[out]num_nodesnumber of nodes/vertices in the local part of the the grid
[out]num_nodes_per_elemnumber of nodes/vertices per element/cell
[out]num_elem_per_nodenumber of elements/cells per node/vertex
[out]elem_to_nodelocal node/vertex indices for each local element/cell
[out]node_to_elemlocal element/cell indices for each local node/vertex
See also
Configuration of parallel IO in YAC

Definition at line 46 of file read_exodus_grid.c.

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