test/h5t/Makefile.am
test/h5u/Makefile.am test/h5b/H5BlockTestAttributes.c test/h5b/Makefile.am src/H5Part.c src/H5Block.c src/H5Part.h src/Makefile.am src/h5/errorhandling.c src/h5/h5_types.h src/h5/attribs.c src/h5/t_readwrite.c src/h5/u_readwrite.c src/h5/t_openclose.c src/h5/h5_private.h src/h5/readwrite.c src/h5/openclose.c src/h5/Makefile.am - changes due to removed H5PartTypes.h, H5BlockTyes.h and H5PartPrivate.h
This commit is contained in:
+2
-5
@@ -43,14 +43,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
|
|
||||||
#include "H5BlockTypes.h"
|
|
||||||
#include "H5Block.h"
|
|
||||||
#include "h5/h5.h"
|
#include "h5/h5.h"
|
||||||
#include "h5/h5_private.h"
|
#include "h5/h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
#include "H5Block.h"
|
||||||
|
|
||||||
/********************** declarations *****************************************/
|
/********************** declarations *****************************************/
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -90,11 +90,9 @@ Last modified on April 19, 2007.
|
|||||||
#define close _close
|
#define close _close
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
#include "h5/h5.h"
|
#include "h5/h5.h"
|
||||||
#include "h5/h5_private.h"
|
#include "h5/h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
|
||||||
extern h5part_error_handler _err_handler;
|
extern h5part_error_handler _err_handler;
|
||||||
extern h5part_int64_t _h5part_errno;
|
extern h5part_int64_t _h5part_errno;
|
||||||
|
|||||||
+1
-2
@@ -4,6 +4,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
#include "h5.h"
|
||||||
#ifdef PARALLEL_IO
|
#ifdef PARALLEL_IO
|
||||||
#include <mpi.h>
|
#include <mpi.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -12,8 +13,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
|
|
||||||
#define H5PART_SUCCESS H5_SUCCESS
|
#define H5PART_SUCCESS H5_SUCCESS
|
||||||
#define H5PART_ERR_NOMEM H5_ERR_NOMEM
|
#define H5PART_ERR_NOMEM H5_ERR_NOMEM
|
||||||
#define H5PART_ERR_INVAL H5_ERR_INVAL
|
#define H5PART_ERR_INVAL H5_ERR_INVAL
|
||||||
|
|||||||
+4
-6
@@ -10,7 +10,7 @@ CC = @CC@
|
|||||||
HDFINC = -I$(HDF5ROOT)/include
|
HDFINC = -I$(HDF5ROOT)/include
|
||||||
MPIINC = @MPIINC@
|
MPIINC = @MPIINC@
|
||||||
|
|
||||||
INC = $(HDFINC) ${MPIINC}
|
INC = $(HDFINC) ${MPIINC} -I./h5
|
||||||
|
|
||||||
# H5Part header file location
|
# H5Part header file location
|
||||||
H5PINC = -I@prefix@/include
|
H5PINC = -I@prefix@/include
|
||||||
@@ -44,13 +44,11 @@ EXTRA_LIBRARIES = libH5Part.a
|
|||||||
# Header files that I wish to install in $(prefix)/include
|
# Header files that I wish to install in $(prefix)/include
|
||||||
include_HEADERS = \
|
include_HEADERS = \
|
||||||
H5Part.h \
|
H5Part.h \
|
||||||
H5PartTypes.h \
|
|
||||||
H5Block.h \
|
H5Block.h \
|
||||||
H5BlockTypes.h \
|
|
||||||
H5Fed.h
|
H5Fed.h
|
||||||
|
|
||||||
# Listing of all possible headers that I may include
|
# Listing of all possible headers that I may include
|
||||||
EXTRA_HEADERS = H5PartPrivate.h H5BlockPrivate.h
|
EXTRA_HEADERS =
|
||||||
|
|
||||||
# Listing of sources
|
# Listing of sources
|
||||||
libH5Part_a_SOURCES = \
|
libH5Part_a_SOURCES = \
|
||||||
@@ -72,8 +70,8 @@ libH5Part.a: $(libH5Part_a_OBJECTS)
|
|||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(CC) $(CFLAGS) $(INC) -c $<
|
$(CC) $(CFLAGS) $(INC) -c $<
|
||||||
|
|
||||||
H5Part.o: H5Part.c H5Part.h H5PartPrivate.h H5PartTypes.h
|
H5Part.o: H5Part.c H5Part.h
|
||||||
H5Block.o: H5Block.c H5Part.h H5PartPrivate.h H5PartTypes.h H5Block.h H5BlockTypes.h
|
H5Block.o: H5Block.c H5Part.h H5Block.h
|
||||||
|
|
||||||
clean: clean-recursive
|
clean: clean-recursive
|
||||||
$(RM) -f *~ *.o *.a *.so
|
$(RM) -f *~ *.o *.a *.so
|
||||||
|
|||||||
+11
-2
@@ -12,7 +12,7 @@ CC = @CC@
|
|||||||
HDFINC = -I$(HDF5ROOT)/include
|
HDFINC = -I$(HDF5ROOT)/include
|
||||||
MPIINC = @MPIINC@
|
MPIINC = @MPIINC@
|
||||||
|
|
||||||
INC = $(HDFINC) ${MPIINC} -I../
|
INC = $(HDFINC) ${MPIINC} -I. -I../
|
||||||
|
|
||||||
# H5Part header file location
|
# H5Part header file location
|
||||||
H5PINC = -I@prefix@/include
|
H5PINC = -I@prefix@/include
|
||||||
@@ -42,7 +42,16 @@ lib_LIBRARIES = libH5.a
|
|||||||
EXTRA_LIBRARIES = libH5.a
|
EXTRA_LIBRARIES = libH5.a
|
||||||
|
|
||||||
# Header files that I wish to install in $(prefix)/include
|
# Header files that I wish to install in $(prefix)/include
|
||||||
include_HEADERS = h5.h
|
include_HEADERS = \
|
||||||
|
h5.h \
|
||||||
|
h5_types.h \
|
||||||
|
attribs.h \
|
||||||
|
errorhandling.h \
|
||||||
|
openclose.h \
|
||||||
|
readwrite.h \
|
||||||
|
t_openclose.h \
|
||||||
|
t_readwrite.h \
|
||||||
|
u_readwrite.h
|
||||||
|
|
||||||
# Listing of all possible headers that I may include
|
# Listing of all possible headers that I may include
|
||||||
EXTRA_HEADERS =
|
EXTRA_HEADERS =
|
||||||
|
|||||||
+2
-5
@@ -6,13 +6,10 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5BlockTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5Block.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
#include "h5.h"
|
#include "h5.h"
|
||||||
#include "h5_private.h"
|
#include "h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
#include "H5Block.h"
|
||||||
|
|
||||||
h5part_int64_t
|
h5part_int64_t
|
||||||
H5_read_attrib (
|
H5_read_attrib (
|
||||||
|
|||||||
@@ -6,11 +6,9 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
#include "h5.h"
|
#include "h5.h"
|
||||||
#include "h5_private.h"
|
#include "h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
|
||||||
h5_error_handler _err_handler = H5_report_errorhandler;
|
h5_error_handler _err_handler = H5_report_errorhandler;
|
||||||
h5_int64_t _h5part_errno = H5PART_SUCCESS;
|
h5_int64_t _h5part_errno = H5PART_SUCCESS;
|
||||||
|
|||||||
@@ -43,4 +43,120 @@
|
|||||||
"Internal error: step_gid <= 0.");
|
"Internal error: step_gid <= 0.");
|
||||||
|
|
||||||
|
|
||||||
|
#define H5PART_GROUPNAME_STEP "Step"
|
||||||
|
|
||||||
|
/*!
|
||||||
|
The functions declared here are not part of the API, but may be used
|
||||||
|
in extensions like H5Block. We name these functions "private".
|
||||||
|
|
||||||
|
\note
|
||||||
|
Private function may change there interface even in stable versions.
|
||||||
|
Don't use them in applications!
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct _iter_op_data {
|
||||||
|
int stop_idx;
|
||||||
|
int count;
|
||||||
|
int type;
|
||||||
|
char *name;
|
||||||
|
size_t len;
|
||||||
|
char *pattern;
|
||||||
|
};
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
H5_set_step (
|
||||||
|
h5_file *f,
|
||||||
|
const h5part_int64_t step
|
||||||
|
);
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
H5_get_num_particles (
|
||||||
|
h5_file *f
|
||||||
|
);
|
||||||
|
|
||||||
|
herr_t
|
||||||
|
H5_iteration_operator (
|
||||||
|
hid_t group_id,
|
||||||
|
const char *member_name,
|
||||||
|
void *operator_data
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define SET_FNAME( fname ) H5_set_funcname( fname );
|
||||||
|
|
||||||
|
hid_t
|
||||||
|
H5_normalize_h5_type (
|
||||||
|
hid_t type
|
||||||
|
);
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
H5_read_attrib (
|
||||||
|
hid_t id,
|
||||||
|
const char *attrib_name,
|
||||||
|
void *attrib_value
|
||||||
|
);
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
H5_write_attrib (
|
||||||
|
hid_t id,
|
||||||
|
const char *attrib_name,
|
||||||
|
const hid_t attrib_type,
|
||||||
|
const void *attrib_value,
|
||||||
|
const hsize_t attrib_nelem
|
||||||
|
);
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
H5_get_attrib_info (
|
||||||
|
hid_t id,
|
||||||
|
const h5part_int64_t attrib_idx,
|
||||||
|
char *attrib_name,
|
||||||
|
const h5part_int64_t len_attrib_name,
|
||||||
|
h5part_int64_t *attrib_type,
|
||||||
|
h5part_int64_t *attrib_nelem
|
||||||
|
);
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
H5_get_num_objects (
|
||||||
|
hid_t group_id,
|
||||||
|
const char *group_name,
|
||||||
|
const hid_t type
|
||||||
|
);
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
H5_get_num_objects_matching_pattern (
|
||||||
|
hid_t group_id,
|
||||||
|
const char *group_name,
|
||||||
|
const hid_t type,
|
||||||
|
char * const pattern
|
||||||
|
);
|
||||||
|
|
||||||
|
h5part_int64_t
|
||||||
|
_H5Part_get_object_name (
|
||||||
|
hid_t group_id,
|
||||||
|
const char *group_name,
|
||||||
|
const hid_t type,
|
||||||
|
const h5part_int64_t idx,
|
||||||
|
char *obj_name,
|
||||||
|
const h5part_int64_t len_obj_name
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
char *
|
||||||
|
_H5Part_strdupfor2c (
|
||||||
|
const char *s,
|
||||||
|
const ssize_t len
|
||||||
|
);
|
||||||
|
|
||||||
|
char *
|
||||||
|
_H5Part_strc2for (
|
||||||
|
char * const str,
|
||||||
|
const ssize_t l_str
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef IPL_XT3
|
||||||
|
# define SEEK_END 2
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+1
-1
@@ -248,5 +248,5 @@ struct h5_file {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct h5_file h5_file;
|
typedef struct h5_file h5_file;
|
||||||
|
typedef struct h5_file H5PartFile;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+2
-5
@@ -7,13 +7,10 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5BlockTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5Block.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
#include "h5.h"
|
#include "h5.h"
|
||||||
#include "h5_private.h"
|
#include "h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
#include "H5Block.h"
|
||||||
|
|
||||||
extern h5part_error_handler _err_handler;
|
extern h5part_error_handler _err_handler;
|
||||||
extern h5part_int64_t _h5part_errno;
|
extern h5part_int64_t _h5part_errno;
|
||||||
|
|||||||
+2
-5
@@ -6,13 +6,10 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5BlockTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5Block.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
#include "h5.h"
|
#include "h5.h"
|
||||||
#include "h5_private.h"
|
#include "h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
#include "H5Block.h"
|
||||||
|
|
||||||
h5part_int64_t
|
h5part_int64_t
|
||||||
H5_write_data (
|
H5_write_data (
|
||||||
|
|||||||
@@ -7,12 +7,9 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5BlockTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
#include "h5/h5.h"
|
#include "h5/h5.h"
|
||||||
#include "h5/h5_private.h"
|
#include "h5/h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
|
||||||
extern h5part_error_handler _err_handler;
|
extern h5part_error_handler _err_handler;
|
||||||
extern h5part_int64_t _h5part_errno;
|
extern h5part_int64_t _h5part_errno;
|
||||||
|
|||||||
@@ -6,13 +6,10 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5BlockTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "H5Block.h"
|
|
||||||
#include "H5PartPrivate.h"
|
|
||||||
#include "h5.h"
|
#include "h5.h"
|
||||||
#include "h5_private.h"
|
#include "h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
#include "H5Block.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Initialize required data structures only!
|
Initialize required data structures only!
|
||||||
|
|||||||
@@ -6,10 +6,9 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
|
|
||||||
#include "H5PartTypes.h"
|
|
||||||
#include "H5Part.h"
|
|
||||||
#include "h5.h"
|
#include "h5.h"
|
||||||
#include "h5_private.h"
|
#include "h5_private.h"
|
||||||
|
#include "H5Part.h"
|
||||||
|
|
||||||
extern h5part_error_handler _err_handler;
|
extern h5part_error_handler _err_handler;
|
||||||
extern h5part_int64_t _h5part_errno;
|
extern h5part_int64_t _h5part_errno;
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
#include <hdf5.h>
|
#include <hdf5.h>
|
||||||
#include "H5Part.h"
|
#include "H5Part.h"
|
||||||
#include "H5Block.h"
|
#include "H5Block.h"
|
||||||
#include "H5BlockTypes.h"
|
|
||||||
#ifndef PARALLEL_IO
|
#ifndef PARALLEL_IO
|
||||||
#ifndef MPI_COMM_WORLD
|
#ifndef MPI_COMM_WORLD
|
||||||
#define MPI_COMM_WORLD 0
|
#define MPI_COMM_WORLD 0
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ LIBS = ${H5LIB} $(HDFLIB) $(MPILIB) -lm @STDCXX@
|
|||||||
# INCLUDES
|
# INCLUDES
|
||||||
HDFINC = -I$(HDF5ROOT)/include
|
HDFINC = -I$(HDF5ROOT)/include
|
||||||
MPIINC = @MPIINC@
|
MPIINC = @MPIINC@
|
||||||
H5INC = -I@H5P_LIB_LOC@
|
H5INC = -I@H5P_LIB_LOC@ -I@H5P_LIB_LOC@/h5
|
||||||
|
|
||||||
INC = $(HDFINC) $(MPIINC) $(H5INC)
|
INC = $(HDFINC) $(MPIINC) $(H5INC)
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ LIBS = ${H5LIB} $(HDFLIB) $(MPILIB) -lm @STDCXX@
|
|||||||
# INCLUDES
|
# INCLUDES
|
||||||
HDFINC = -I$(HDF5ROOT)/include
|
HDFINC = -I$(HDF5ROOT)/include
|
||||||
MPIINC = @MPIINC@
|
MPIINC = @MPIINC@
|
||||||
H5INC = -I@H5P_LIB_LOC@
|
H5INC = -I@H5P_LIB_LOC@ -I@H5P_LIB_LOC@/h5
|
||||||
|
|
||||||
INC = $(HDFINC) $(MPIINC) $(H5INC)
|
INC = $(HDFINC) $(MPIINC) $(H5INC)
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ LIBS = ${H5LIB} $(HDFLIB) $(MPILIB) -lm @STDCXX@
|
|||||||
# INCLUDES
|
# INCLUDES
|
||||||
HDFINC = -I$(HDF5ROOT)/include
|
HDFINC = -I$(HDF5ROOT)/include
|
||||||
MPIINC = @MPIINC@
|
MPIINC = @MPIINC@
|
||||||
H5INC = -I@H5P_LIB_LOC@
|
H5INC = -I@H5P_LIB_LOC@ -I@H5P_LIB_LOC@/h5
|
||||||
|
|
||||||
INC = $(HDFINC) $(MPIINC) $(H5INC)
|
INC = $(HDFINC) $(MPIINC) $(H5INC)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user