H5Part  1.6.6
Functions
Reading and Writing Datasets
H5MultiBlock C API

Functions

h5part_int64_t H5MultiBlock3dReadFieldFloat32 (H5PartFile *f, const char *name, h5part_float32_t **data)
h5part_int64_t H5MultiBlock3dReadFieldFloat64 (H5PartFile *f, const char *name, h5part_float64_t **data)
h5part_int64_t H5MultiBlock3dReadFieldInt32 (H5PartFile *f, const char *name, h5part_int32_t **data)
h5part_int64_t H5MultiBlock3dReadFieldInt64 (H5PartFile *f, const char *name, h5part_int64_t **data)
h5part_int64_t H5MultiBlock3dWriteFieldFloat32 (H5PartFile *f, const char *name, const h5part_float32_t *data)
h5part_int64_t H5MultiBlock3dWriteFieldFloat64 (H5PartFile *f, const char *name, const h5part_float64_t *data)
h5part_int64_t H5MultiBlock3dWriteFieldInt32 (H5PartFile *f, const char *name, const h5part_int32_t *data)
h5part_int64_t H5MultiBlock3dWriteFieldInt64 (H5PartFile *f, const char *name, const h5part_int64_t *data)
h5part_int64_t H5MultiBlockFree (void *block)

Function Documentation

h5part_int64_t H5MultiBlock3dReadFieldFloat32 ( H5PartFile *  f,
const char *  name,
h5part_float32_t **  data 
)

Allocate a buffer to hold a block from a multiblock field and place the pointer in data, then read the block into the buffer. Uses the block decomposition specified in the file and the defined halo radius. Values are floating points (32-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to read
dataOUT: ptr to read buffer
h5part_int64_t H5MultiBlock3dReadFieldFloat64 ( H5PartFile *  f,
const char *  name,
h5part_float64_t **  data 
)

Allocate a buffer to hold a block from a multiblock field and place the pointer in data, then read the block into the buffer. Uses the block decomposition specified in the file and the defined halo radius. Values are floating points (64-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to read
dataOUT: ptr to read buffer
h5part_int64_t H5MultiBlock3dReadFieldInt32 ( H5PartFile *  f,
const char *  name,
h5part_int32_t **  data 
)

Allocate a buffer to hold a block from a multiblock field and place the pointer in data, then read the block into the buffer. Uses the block decomposition specified in the file and the defined halo radius. Values are integers (32-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to read
dataOUT: ptr to read buffer
h5part_int64_t H5MultiBlock3dReadFieldInt64 ( H5PartFile *  f,
const char *  name,
h5part_int64_t **  data 
)

Allocate a buffer to hold a block from a multiblock field and place the pointer in data, then read the block into the buffer. Uses the block decomposition specified in the file and the defined halo radius. Values are integers (64-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to read
dataOUT: ptr to read buffer
h5part_int64_t H5MultiBlock3dWriteFieldFloat32 ( H5PartFile *  f,
const char *  name,
const h5part_float32_t *  data 
)

Write a multiblock field name from the buffer starting at data to the current time-step using the defined block decomposition and dimensions. Values are floating points (32-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to write
dataIN: data to write
h5part_int64_t H5MultiBlock3dWriteFieldFloat64 ( H5PartFile *  f,
const char *  name,
const h5part_float64_t *  data 
)

Write a multiblock field name from the buffer starting at data to the current time-step using the defined block decomposition and dimensions. Values are floating points (64-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to write
dataIN: data to write
h5part_int64_t H5MultiBlock3dWriteFieldInt32 ( H5PartFile *  f,
const char *  name,
const h5part_int32_t *  data 
)

Write a multiblock field name from the buffer starting at data to the current time-step using the defined block decomposition and dimensions. Values are integers (32-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to write
dataIN: data to write
h5part_int64_t H5MultiBlock3dWriteFieldInt64 ( H5PartFile *  f,
const char *  name,
const h5part_int64_t *  data 
)

Write a multiblock field name from the buffer starting at data to the current time-step using the defined block decomposition and dimensions. Values are integers (64-bit).

You must use the Fortran indexing scheme to access items in data.

Returns:
H5PART_SUCCESS or error code
Parameters:
fIN: file handle
nameIN: name of dataset to write
dataIN: data to write
h5part_int64_t H5MultiBlockFree ( void *  block)

Frees a block that was allocated during a read.

Returns:
H5PART_SUCCESS
Parameters:
blockIN: block that was allocated during a read