YetAnotherCoupler 3.2.0
Loading...
Searching...
No Matches
Macros | Functions
io_utils.h File Reference
#include "yac_config.h"
#include <netcdf.h>
#include <mpi.h>
#include "yac_assert.h"
Include dependency graph for io_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define YAC_HANDLE_ERROR(exp)
 

Functions

int yac_file_exists (const char *filename)
 
void yac_get_io_ranks (MPI_Comm comm, int *local_is_io, int **io_ranks, int *num_io_ranks)
 
void yac_nc_open (const char *path, int omode, int *ncidp)
 
void yac_nc_create (const char *path, int cmode, int *ncidp)
 
void yac_nc_inq_dimid (int ncid, char const *name, int *dimidp)
 
void yac_nc_inq_varid (int ncid, char const *name, int *varidp)
 

Macro Definition Documentation

◆ YAC_HANDLE_ERROR

#define YAC_HANDLE_ERROR (   exp)
Value:
do { \
int handle_error_status = (exp); \
YAC_ASSERT_F( \
(handle_error_status) == NC_NOERR, \
"%s", nc_strerror(handle_error_status)) \
} while(0)
Examples
test_dist_grid_pair_parallel.c, test_interp_weights_parallel.c, test_read_fesom.c, test_read_icon_parallel.c, test_read_scrip.c, test_read_woa_data.c, and test_weights2vtk.c.

Definition at line 30 of file io_utils.h.

Function Documentation

◆ yac_file_exists()

int yac_file_exists ( const char *  filename)
Examples
test_dummy_coupling3_c.c, test_grid2vtk.c, test_read_icon.c, test_read_mpiom.c, and test_read_scrip.c.

Definition at line 12 of file utils_core.c.

Here is the caller graph for this function:

◆ yac_get_io_ranks()

void yac_get_io_ranks ( MPI_Comm  comm,
int *  local_is_io,
int **  io_ranks,
int *  num_io_ranks 
)

Definition at line 303 of file io_utils.c.

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

◆ yac_nc_create()

void yac_nc_create ( const char *  path,
int  cmode,
int *  ncidp 
)

Definition at line 361 of file io_utils.c.

Here is the caller graph for this function:

◆ yac_nc_inq_dimid()

void yac_nc_inq_dimid ( int  ncid,
char const *  name,
int *  dimidp 
)

Definition at line 379 of file io_utils.c.

Here is the caller graph for this function:

◆ yac_nc_inq_varid()

void yac_nc_inq_varid ( int  ncid,
char const *  name,
int *  varidp 
)

Definition at line 405 of file io_utils.c.

Here is the caller graph for this function:

◆ yac_nc_open()

void yac_nc_open ( const char *  path,
int  omode,
int *  ncidp 
)

Definition at line 344 of file io_utils.c.

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