ParallelIO
|
Support functions. More...
Macros | |
#define | versno 2001 |
Functions | |
int | PIOc_strerror (int pioerr, char *errmsg) |
Return a string description of an error code. More... | |
int | PIOc_set_log_level (int level) |
Set the logging level. More... | |
void | pio_get_env (void) |
Get PIO environment variables. More... | |
void | print_trace (FILE *fp) |
void | piomemerror (iosystem_desc_t ios, size_t req, char *fname, const int line) |
void | piodie (const char *msg, const char *fname, const int line) |
void | pioassert (_Bool expression, const char *msg, const char *fname, const int line) |
int | check_mpi (file_desc_t *file, const int mpierr, const char *filename, const int line) |
Handle MPI errors. More... | |
int | check_netcdf (file_desc_t *file, int status, const char *fname, const int line) |
Check the result of a netCDF API call. More... | |
int | iotype_error (const int iotype, const char *fname, const int line) |
io_region * | alloc_region (const int ndims) |
io_desc_t * | malloc_iodesc (const int piotype, const int ndims) |
void | free_region_list (io_region *top) |
int | PIOc_freedecomp (int iosysid, int ioid) |
int | PIOc_readmap (const char file[], int *ndims, int *gdims[], PIO_Offset *fmaplen, PIO_Offset *map[], const MPI_Comm comm) |
int | PIOc_readmap_from_f90 (const char file[], int *ndims, int *gdims[], PIO_Offset *maplen, PIO_Offset *map[], const int f90_comm) |
int | PIOc_writemap (const char file[], const int ndims, const int gdims[], PIO_Offset maplen, PIO_Offset map[], const MPI_Comm comm) |
int | PIOc_writemap_from_f90 (const char file[], const int ndims, const int gdims[], const PIO_Offset maplen, const PIO_Offset map[], const int f90_comm) |
Variables | |
bool | PIO_Save_Decomps =false |
Support functions.
int check_mpi | ( | file_desc_t * | file, |
const int | mpierr, | ||
const char * | filename, | ||
const int | line | ||
) |
Handle MPI errors.
An error message is sent to stderr, then the check_netcdf() function is called with PIO_EIO.
file | pointer to the file_desc_t info. May be NULL, in which case check_netcdf() is not called. |
mpierr | the MPI return code to handle |
filename | the name of the code file where error occured. |
line | the line of code where error occured. |
int check_netcdf | ( | file_desc_t * | file, |
int | status, | ||
const char * | fname, | ||
const int | line | ||
) |
Check the result of a netCDF API call.
file | pointer to the PIO structure describing this file. |
status | the return value from the netCDF call. |
fname | the name of the code file. |
line | the line number of the netCDF call in the code. |
void pio_get_env | ( | void | ) |
Get PIO environment variables.
int PIOc_set_log_level | ( | int | level | ) |
Set the logging level.
Set to -1 for nothing, 0 for errors only, 1 for important logging, and so on. Log levels below 1 are only printed on the io/component root. If the library is not built with logging, this function does nothing.
int PIOc_strerror | ( | int | pioerr, |
char * | errmsg | ||
) |
Return a string description of an error code.
If zero is passed, a null is returned.
pioerr | the error code returned by a PIO function call. |
errmsg | Pointer that will get the error message. It will be PIO_MAX_NAME chars or less. |