PIO  2.5.4
Macros | Functions | Variables
pio_darray.c File Reference
#include <config.h>
#include <pio.h>
#include <pio_internal.h>
#include <uthash.h>
Include dependency graph for pio_darray.c:

Macros

#define DARRAY_FILL   1
 For write_darray_multi_serial() and write_darray_multi_par() to indicate that fill is being written.
 
#define DARRAY_DATA   0
 For write_darray_multi_serial() and write_darray_multi_par() to indicate that data are being written.
 

Functions

PIO_Offset PIOc_set_buffer_size_limit (PIO_Offset limit)
 Set the PIO IO node data buffer size limit. More...
 
int PIOc_write_darray_multi (int ncid, const int *varids, int ioid, int nvars, PIO_Offset arraylen, void *array, const int *frame, void **fillvalue, bool flushtodisk)
 Write one or more arrays with the same IO decomposition to the file. More...
 
int find_var_fillvalue (file_desc_t *file, int varid, var_desc_t *vdesc)
 Find the fillvalue that should be used for a variable. More...
 
int PIOc_write_darray (int ncid, int varid, int ioid, PIO_Offset arraylen, void *array, void *fillvalue)
 Write a distributed array to the output file. More...
 
int PIOc_read_darray (int ncid, int varid, int ioid, PIO_Offset arraylen, void *array)
 Read a field from a file to the IO library using distributed arrays. More...
 

Variables

PIO_Offset pio_buffer_size_limit = PIO_BUFFER_SIZE
 10MB default limit.
 
void * CN_bpool = NULL
 Global buffer pool pointer.
 
PIO_Offset maxusage = 0
 Maximum buffer usage.
 

Detailed Description

Public functions that read and write distributed arrays in PIO.

When arrays are distributed, each processor holds some of the array. Only by combining the distributed arrays from all processor can the full array be obtained.

Author
Jim Edwards

Function Documentation

◆ PIOc_set_buffer_size_limit()

PIO_Offset PIOc_set_buffer_size_limit ( PIO_Offset  limit)

Set the PIO IO node data buffer size limit.

The pio_buffer_size_limit will only apply to files opened after the setting is changed.

Parameters
limitthe size of the buffer on the IO nodes
Returns
The previous limit setting.
Author
Jim Edwards