f7b2471701
src/H5BlockTypes.h src/H5Part.c src/H5PartPrivate.h src/H5Block.c src/H5Part.h src/h5/u_readwrite.h src/h5/H5.h src/h5/readwrite.c src/h5/openclose.c src/h5/attribs.c src/h5/u_readwrite.c src/h5/readwrite.h src/h5/openclose.h src/h5/attribs.h src/bindings/Fortran/H5PartF.c src/bindings/Fortran/H5BlockF.c src/H5Block.h src/H5PartTypes.h - refactoring * struct H5PartFile -> struct h5_file * struct H5BlockStruct -> struct h5b_fdata
205 lines
3.5 KiB
C
205 lines
3.5 KiB
C
#ifndef __H5BLOCK_H
|
|
#define __H5BLOCK_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*!
|
|
Interface for block structured field data
|
|
|
|
*/
|
|
|
|
h5part_int64_t
|
|
H5BlockDefine3DFieldLayout (
|
|
h5_file *f,
|
|
const h5part_int64_t i_start,
|
|
const h5part_int64_t i_end,
|
|
const h5part_int64_t j_start,
|
|
const h5part_int64_t j_end,
|
|
const h5part_int64_t k_start,
|
|
const h5part_int64_t k_end
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dGetPartitionOfProc (
|
|
h5_file *f,
|
|
const h5part_int64_t proc,
|
|
h5part_int64_t *i_start,
|
|
h5part_int64_t *i_end,
|
|
h5part_int64_t *j_start,
|
|
h5part_int64_t *j_end,
|
|
h5part_int64_t *k_start,
|
|
h5part_int64_t *k_end
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dGetReducedPartitionOfProc (
|
|
h5_file *f,
|
|
h5part_int64_t proc,
|
|
h5part_int64_t *i_start,
|
|
h5part_int64_t *i_end,
|
|
h5part_int64_t *j_start,
|
|
h5part_int64_t *j_end,
|
|
h5part_int64_t *k_start,
|
|
h5part_int64_t *k_end
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dGetProcOf (
|
|
h5_file *f,
|
|
h5part_int64_t i,
|
|
h5part_int64_t j,
|
|
h5part_int64_t k
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dWriteScalarField (
|
|
h5_file *f,
|
|
const char *name,
|
|
const h5part_float64_t *data
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dReadScalarField (
|
|
h5_file *f,
|
|
const char *name,
|
|
h5part_float64_t *data
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockGetNumFields (
|
|
h5_file *f
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockGetFieldInfo (
|
|
h5_file *f,
|
|
const h5part_int64_t idx,
|
|
char *name,
|
|
const h5part_int64_t len_name,
|
|
h5part_int64_t *grid_rank,
|
|
h5part_int64_t *grid_dims,
|
|
h5part_int64_t *field_dims
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockGetFieldInfoByName (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
h5part_int64_t *grid_rank,
|
|
h5part_int64_t *grid_dims,
|
|
h5part_int64_t *field_dims
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dGetFieldOrigin (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
h5part_float64_t *x_origin,
|
|
h5part_float64_t *y_origin,
|
|
h5part_float64_t *z_origin
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dSetFieldOrigin (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
const h5part_float64_t x_origin,
|
|
const h5part_float64_t y_origin,
|
|
const h5part_float64_t z_origin
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dGetFieldSpacing (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
h5part_float64_t *x_spacing,
|
|
h5part_float64_t *y_spacing,
|
|
h5part_float64_t *z_spacing
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dSetFieldSpacing (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
const h5part_float64_t x_spacing,
|
|
const h5part_float64_t y_spacing,
|
|
const h5part_float64_t z_spacing
|
|
);
|
|
|
|
|
|
|
|
h5part_int64_t
|
|
H5Block3dWrite3dVectorField (
|
|
h5_file *f,
|
|
const char *name,
|
|
const h5part_float64_t *xval,
|
|
const h5part_float64_t *yval,
|
|
const h5part_float64_t *zval
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5Block3dRead3dVectorField (
|
|
h5_file *f,
|
|
const char *name,
|
|
h5part_float64_t *xval,
|
|
h5part_float64_t *yval,
|
|
h5part_float64_t *zval
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockWriteFieldAttrib (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
const char *attrib_name,
|
|
const h5part_int64_t attrib_type,
|
|
const void *attrib_value,
|
|
const h5part_int64_t attrib_nelem
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockWriteFieldAttribString (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
const char *attrib_name,
|
|
const char *attrib_value
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockGetNumFieldAttribs (
|
|
h5_file *f,
|
|
const char *field_name
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockGetFieldAttribInfo (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
const h5part_int64_t attrib_idx,
|
|
char *attrib_name,
|
|
const h5part_int64_t len_of_attrib_name,
|
|
h5part_int64_t *attrib_type,
|
|
h5part_int64_t *attrib_nelem
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockReadFieldAttrib (
|
|
h5_file *f,
|
|
const char *field_name,
|
|
const char *attrib_name,
|
|
void *attrib_value
|
|
);
|
|
|
|
h5part_int64_t
|
|
H5BlockHasFieldData (
|
|
h5_file *f
|
|
);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|